From ba993cc685811d5e75acc9ff562c53c505368f0f Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 25 Feb 2014 13:43:47 +0100 Subject: [PATCH] redis-cli: don't use uint64_t where actually not needed. The computation is just something to take the CPU busy, no need to use a specific type. Since stdint.h was not included this prevented compilation on certain systems. --- src/redis-cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redis-cli.c b/src/redis-cli.c index b2bd7b79..8d34a5c4 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1599,10 +1599,10 @@ static void scanMode() { /* This is just some computation the compiler can't optimize out. * Should run in less than 100-200 microseconds even using very * slow hardware. Runs in less than 10 microseconds in modern HW. */ -uint64_t compute_something_fast(void) { +unsigned long compute_something_fast(void) { uint8_t s[256], i, j, t; int count = 1000, k; - uint64_t output = 0; + unsigned long output = 0; for (k = 0; k < 256; k++) s[k] = k;