summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-01 06:37:36 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-01 06:37:36 +0200
commit0bfa8640216bff29f24f47f1c218c9adae651b5d (patch)
tree5bada7200a7336cc9ed898f952578eb664d98f2c
parentdf34de369bc2c070dfe25d6cffec626774f83531 (diff)
downloadserenity-0bfa8640216bff29f24f47f1c218c9adae651b5d.zip
LibC: Fix -Werror build in new strtol().
-rw-r--r--LibC/stdlib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibC/stdlib.cpp b/LibC/stdlib.cpp
index 7acc5455c9..4a41e5be44 100644
--- a/LibC/stdlib.cpp
+++ b/LibC/stdlib.cpp
@@ -363,7 +363,7 @@ long strtol(const char* str, char** endptr, int base)
num += (track *= base) / base * digit_value;
} else {
if (endptr != NULL)
- *endptr = estr;
+ *endptr = const_cast<char*>(estr);
return 0;
};
estr--;