summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Pearson <angus@toaster.cc>2019-07-02 14:28:48 +0100
committerAngus Pearson <angus@toaster.cc>2019-07-02 14:28:48 +0100
commit593f6656c1c6ce71eccd71496bb0e62c5f0741b7 (patch)
treefa962bc929e789c5d5a10f46170b0cf8d5a40c1f
parent0cabe0cfa7290d9b14596ec38e0d0a22df65d1df (diff)
downloadredis-593f6656c1c6ce71eccd71496bb0e62c5f0741b7.tar.gz
RESP3 double representation for -infinity is `,-inf\r\n`, not `-inf\r\n`
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index 4bc22120a..6225229ce 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -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 {