Skip to content
Snippets Groups Projects
Commit 2dd514d0 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use strtoull() converting a string to a size_t

Except on Borland, which presumably doesn't have strtoull().
parent 174875d6
No related branches found
No related tags found
No related merge requests found
......@@ -1150,7 +1150,11 @@ char* xp_asprintf_next(char *format, int type, ...)
break;
#endif
case XP_PRINTF_TYPE_CHARP:
s=strtol(cp, NULL, 0); /* was strtoll */
#if defined(__BORLANDC__)
s=strtoul(cp, NULL, 0);
#else
s=strtoull(cp, NULL, 0);
#endif
break;
case XP_PRINTF_TYPE_DOUBLE:
s=(size_t)d;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment