Commit 593f6656 authored by Angus Pearson's avatar Angus Pearson
Browse files

RESP3 double representation for -infinity is `,-inf\r\n`, not `-inf\r\n`

parent 0cabe0cf
......@@ -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 {
......
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