Fix typing
This commit is contained in:
1 parent
e84fa859c6
commit
b27f490acb
4 files changed
+18
-18
No files matched your search
@@ -34,7 +34,7 @@ static bool uint_in_str(unsigned int *u, FILE *f)
|
||||
static bool uint_parse_str(unsigned int *u, const char str[], const char **endptr)
|
||||
{
|
||||
char *end;
|
||||
*u = strtol(str, &end, 0);
|
||||
*u = (unsigned int) strtol(str, &end, 0);
|
||||
if (endptr) { *endptr = (const char*) end; }
|
||||
return (uintptr_t) end != (uintptr_t) str;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user