mirror of https://mirror.osredm.com/root/redis.git
RESP3 double representation for -infinity is `,-inf\r\n`, not `-inf\r\n`
This commit is contained in:
parent
0cabe0cfa7
commit
593f6656c1
|
@ -506,7 +506,7 @@ void addReplyDouble(client *c, double d) {
|
||||||
if (c->resp == 2) {
|
if (c->resp == 2) {
|
||||||
addReplyBulkCString(c, d > 0 ? "inf" : "-inf");
|
addReplyBulkCString(c, d > 0 ? "inf" : "-inf");
|
||||||
} else {
|
} 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);
|
d > 0 ? 6 : 7);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue