Skip to content

Commit

Permalink
when reading unsigned from redis, use strtoul because otherwise we lo…
Browse files Browse the repository at this point in the history
…se data
  • Loading branch information
guss77 committed Jan 29, 2020
1 parent 19a39ec commit e767e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ static struct timeval strtotimeval(const char *c, char **endp, int base) {
define_get_int_type(time_t, time_t, strtoull);
define_get_int_type(timeval, struct timeval, strtotimeval);
define_get_int_type(int, int, strtol);
define_get_int_type(unsigned, unsigned int, strtol);
define_get_int_type(unsigned, unsigned int, strtoul);
//define_get_int_type(u16, u_int16_t, strtol);
//define_get_int_type(u64, u_int64_t, strtoull);
define_get_int_type(a64, atomic64, strtoa64);
Expand Down

0 comments on commit e767e59

Please sign in to comment.