LibC: Fix -Werror build in new strtol().

This commit is contained in:
Andreas Kling 2019-07-01 06:37:36 +02:00
parent df34de369b
commit 0bfa864021
Notes: sideshowbarker 2024-07-19 13:25:40 +09:00

View file

@ -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--;