Commit 96a5c166 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Fix warning

parent 4783ee27
...@@ -259,7 +259,7 @@ void test_integer(void) { ...@@ -259,7 +259,7 @@ void test_integer(void) {
reinitialize(p); reinitialize(p);
assert(redis_parser_execute(p, &res, buf, strlen(buf)) == strlen(buf)); assert(redis_parser_execute(p, &res, buf, strlen(buf)) == strlen(buf));
assert(res != NULL); assert(res != NULL);
assert(cb_log_idx == 1 && cb_log[0].integer_value == 9223372036854775807LL); assert(cb_log_idx == 1 && cb_log[0].integer_value == INT64_MAX);
/* Signed 64-bit maximum overflow */ /* Signed 64-bit maximum overflow */
buf = ":9223372036854775808\r\n"; buf = ":9223372036854775808\r\n";
...@@ -272,7 +272,7 @@ void test_integer(void) { ...@@ -272,7 +272,7 @@ void test_integer(void) {
reinitialize(p); reinitialize(p);
assert(redis_parser_execute(p, &res, buf, strlen(buf)) == strlen(buf)); assert(redis_parser_execute(p, &res, buf, strlen(buf)) == strlen(buf));
assert(res != NULL); assert(res != NULL);
assert(cb_log_idx == 1 && cb_log[0].integer_value == -9223372036854775808LL); assert(cb_log_idx == 1 && cb_log[0].integer_value == INT64_MIN);
/* Signed 64-bit minimum overflow (or underflow...) */ /* Signed 64-bit minimum overflow (or underflow...) */
buf = ":-9223372036854775809\r\n"; buf = ":-9223372036854775809\r\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment