Skip to content

Commit

Permalink
fixed signed/unsigned problem
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Mar 26, 2013
1 parent 4890730 commit 6c6d1ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ uint8_t param_get8ex(const char *line, int paramnum, int deflt, int base)
int bg, en;

if (!param_getptr(line, &bg, &en, paramnum))
return strtol(&line[bg], NULL, base) & 0xff;
return strtoul(&line[bg], NULL, base) & 0xff;
else
return deflt;
}
Expand All @@ -198,7 +198,7 @@ uint32_t param_get32ex(const char *line, int paramnum, int deflt, int base)
int bg, en;

if (!param_getptr(line, &bg, &en, paramnum))
return strtol(&line[bg], NULL, base);
return strtoul(&line[bg], NULL, base);
else
return deflt;
}
Expand All @@ -208,7 +208,7 @@ uint64_t param_get64ex(const char *line, int paramnum, int deflt, int base)
int bg, en;

if (!param_getptr(line, &bg, &en, paramnum))
return strtoll(&line[bg], NULL, base);
return strtoull(&line[bg], NULL, base);
else
return deflt;

Expand Down

0 comments on commit 6c6d1ac

Please sign in to comment.