Skip to content
Snippets Groups Projects
Commit a31a6509 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 cdc24bc5
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -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.
Finish editing this message first!
Please register or to comment