diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-01 06:37:36 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-01 06:37:36 +0200 |
commit | 0bfa8640216bff29f24f47f1c218c9adae651b5d (patch) | |
tree | 5bada7200a7336cc9ed898f952578eb664d98f2c | |
parent | df34de369bc2c070dfe25d6cffec626774f83531 (diff) | |
download | serenity-0bfa8640216bff29f24f47f1c218c9adae651b5d.zip |
LibC: Fix -Werror build in new strtol().
-rw-r--r-- | LibC/stdlib.cpp | 2 |
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--; |