mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
LibC: Fix -Werror build in new strtol().
This commit is contained in:
parent
df34de369b
commit
0bfa864021
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…
Add table
Add a link
Reference in a new issue