Commit 3a3d8069 authored by antirez's avatar antirez
Browse files

RESP3: bitops.c updated.

parent 317f8b9d
...@@ -1002,7 +1002,7 @@ void bitfieldCommand(client *c) { ...@@ -1002,7 +1002,7 @@ void bitfieldCommand(client *c) {
highest_write_offset)) == NULL) return; highest_write_offset)) == NULL) return;
} }
addReplyMultiBulkLen(c,numops); addReplyArrayLen(c,numops);
/* Actually process the operations. */ /* Actually process the operations. */
for (j = 0; j < numops; j++) { for (j = 0; j < numops; j++) {
...@@ -1047,7 +1047,7 @@ void bitfieldCommand(client *c) { ...@@ -1047,7 +1047,7 @@ void bitfieldCommand(client *c) {
setSignedBitfield(o->ptr,thisop->offset, setSignedBitfield(o->ptr,thisop->offset,
thisop->bits,newval); thisop->bits,newval);
} else { } else {
addReply(c,shared.nullbulk); addReplyNull(c);
} }
} else { } else {
uint64_t oldval, newval, wrapped, retval; uint64_t oldval, newval, wrapped, retval;
...@@ -1076,7 +1076,7 @@ void bitfieldCommand(client *c) { ...@@ -1076,7 +1076,7 @@ void bitfieldCommand(client *c) {
setUnsignedBitfield(o->ptr,thisop->offset, setUnsignedBitfield(o->ptr,thisop->offset,
thisop->bits,newval); thisop->bits,newval);
} else { } else {
addReply(c,shared.nullbulk); addReplyNull(c);
} }
} }
changes++; changes++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment