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

This commit is contained in:
Angus Pearson 2019-07-02 14:28:48 +01:00
parent 0cabe0cfa7
commit 593f6656c1

View File

@ -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 {