1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-27 19:55:09 +00:00

Fix strtol 'endptr' return value.

This commit is contained in:
Christian Groessler 2013-09-12 12:38:20 +02:00
parent 5a84da0d4e
commit 2051adeb4d

View File

@ -102,7 +102,7 @@ long __fastcall__ strtol (const char* nptr, char** endptr, int base)
*/
if (endptr) {
if (CvtCount > 0) {
*endptr = (char*) S - 1;
*endptr = (char*) S;
} else {
*endptr = (char*) nptr;
}