Merge pull request #6196 from AngusP/resp3

[RESP3, Minor] in networking.c double representation for -infiinity leaves out comma
This commit is contained in:
Salvatore Sanfilippo 2019-07-12 13:08:46 +02:00 committed by GitHub
commit 3f1c84751a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -507,7 +507,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 {