mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibC: Fix -Werror build in new strtol().
This commit is contained in:
parent
df34de369b
commit
0bfa864021
Notes:
sideshowbarker
2024-07-19 13:25:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0bfa8640216
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ long strtol(const char* str, char** endptr, int base)
|
||||||
num += (track *= base) / base * digit_value;
|
num += (track *= base) / base * digit_value;
|
||||||
} else {
|
} else {
|
||||||
if (endptr != NULL)
|
if (endptr != NULL)
|
||||||
*endptr = estr;
|
*endptr = const_cast<char*>(estr);
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
estr--;
|
estr--;
|
||||||
|
|
Loading…
Reference in a new issue