Fix typing

This commit is contained in:
Patrick Pelissier committed 2020-06-14 00:18:26 +02:00
1 parent e84fa859c6
commit b27f490acb
4 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -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;
}