提交 16c2189d 编写于 作者: A antirez

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.
上级 1b2bcd42
......@@ -1622,10 +1622,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册