Skip to content
Snippets Groups Projects
Commit 5b1c6444 authored by bdr7fv's avatar bdr7fv
Browse files

Small bug in PN's General_Utility.cpp, used strtol instead of strtoul.



Former-commit-id: 9adaaf5a10aa179adbc36318ca31f5e58756091b
parent 0c528cec
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ STR2NUM_ERROR str2uint (unsigned int &i, char const *s, int base)
char *end;
unsigned long l;
errno = 0;
l = strtol(s, &end, base);
l = strtoul(s, &end, base);
if ((errno == ERANGE && l == ULONG_MAX) || l > UINT_MAX) {
return OVERFLOW;
}
......
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