mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Fix strtol 'endptr' return value.
This commit is contained in:
parent
5a84da0d4e
commit
2051adeb4d
@ -102,7 +102,7 @@ long __fastcall__ strtol (const char* nptr, char** endptr, int base)
|
|||||||
*/
|
*/
|
||||||
if (endptr) {
|
if (endptr) {
|
||||||
if (CvtCount > 0) {
|
if (CvtCount > 0) {
|
||||||
*endptr = (char*) S - 1;
|
*endptr = (char*) S;
|
||||||
} else {
|
} else {
|
||||||
*endptr = (char*) nptr;
|
*endptr = (char*) nptr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user