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
redis
Commits
593f6656
Commit
593f6656
authored
Jul 02, 2019
by
Angus Pearson
Browse files
RESP3 double representation for -infinity is `,-inf\r\n`, not `-inf\r\n`
parent
0cabe0cf
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
593f6656
...
...
@@ -506,7 +506,7 @@ void addReplyDouble(client *c, double d) {
if (c->resp == 2) {
addReplyBulkCString(c, d > 0 ? "inf" : "-inf");
} else {
addReplyProto(c, d > 0 ? ",inf\r\n" : "-inf\r\n",
addReplyProto(c, d > 0 ? ",inf\r\n" : "
,
-inf\r\n",
d > 0 ? 6 : 7);
}
} else {
...
...
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