mirror of
https://github.com/fluencelabs/redis
synced 2025-04-22 17:12:13 +00:00
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…
x
Reference in New Issue
Block a user