Skip to content

Commit

Permalink
bug 1362 - moxi should use long long unsigned int
Browse files Browse the repository at this point in the history
Change-Id: I4b2a9f18dc2ac7ced7159a7cdbf808b41fa7842b
Reviewed-on: http://review.northscale.com:8080/570
Reviewed-by: Patrick M. Galbraith <patg@northscale.com>
Tested-by: Patrick M. Galbraith <patg@northscale.com>
  • Loading branch information
steveyen authored and Patrick M. Galbraith committed Jun 15, 2010
1 parent d825d0e commit e448106
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cproxy_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ bool protocol_stats_merge_sum(char *v1, int v1len,
sprintf(out, "%f", v1f + v2f);
return true;
} else {
uint64_t v1i = 0;
uint64_t v2i = 0;
long long unsigned int v1i = 0;
long long unsigned int v2i = 0;

if (safe_strtoull(v1, &v1i) &&
safe_strtoull(v2, &v2i)) {
Expand All @@ -251,8 +251,8 @@ bool protocol_stats_merge_smallest(char *v1, int v1len,
sprintf(out, "%f", (v1f > v2f ? v1f : v2f));
return true;
} else {
uint64_t v1i = 0;
uint64_t v2i = 0;
long long unsigned int v1i = 0;
long long unsigned int v2i = 0;

if (safe_strtoull(v1, &v1i) &&
safe_strtoull(v2, &v2i)) {
Expand Down

0 comments on commit e448106

Please sign in to comment.