From 3a3d806989ea5ee17482c0a085788adb48fd5917 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 30 Nov 2018 10:40:54 +0100 Subject: [PATCH] RESP3: bitops.c updated. --- src/bitops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitops.c b/src/bitops.c index 23f2266a..8d03a769 100644 --- a/src/bitops.c +++ b/src/bitops.c @@ -1002,7 +1002,7 @@ void bitfieldCommand(client *c) { highest_write_offset)) == NULL) return; } - addReplyMultiBulkLen(c,numops); + addReplyArrayLen(c,numops); /* Actually process the operations. */ for (j = 0; j < numops; j++) { @@ -1047,7 +1047,7 @@ void bitfieldCommand(client *c) { setSignedBitfield(o->ptr,thisop->offset, thisop->bits,newval); } else { - addReply(c,shared.nullbulk); + addReplyNull(c); } } else { uint64_t oldval, newval, wrapped, retval; @@ -1076,7 +1076,7 @@ void bitfieldCommand(client *c) { setUnsignedBitfield(o->ptr,thisop->offset, thisop->bits,newval); } else { - addReply(c,shared.nullbulk); + addReplyNull(c); } } changes++;