Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
96a5c166
Commit
96a5c166
authored
Jun 30, 2011
by
Pieter Noordhuis
Browse files
Fix warning
parent
4783ee27
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/parser.c
View file @
96a5c166
...
...
@@ -259,7 +259,7 @@ void test_integer(void) {
reinitialize
(
p
);
assert
(
redis_parser_execute
(
p
,
&
res
,
buf
,
strlen
(
buf
))
==
strlen
(
buf
));
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 */
buf
=
":9223372036854775808
\r\n
"
;
...
...
@@ -272,7 +272,7 @@ void test_integer(void) {
reinitialize
(
p
);
assert
(
redis_parser_execute
(
p
,
&
res
,
buf
,
strlen
(
buf
))
==
strlen
(
buf
));
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...) */
buf
=
":-9223372036854775809
\r\n
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment