Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3a3d8069
Commit
3a3d8069
authored
Nov 30, 2018
by
antirez
Browse files
RESP3: bitops.c updated.
parent
317f8b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bitops.c
View file @
3a3d8069
...
...
@@ -1002,7 +1002,7 @@ void bitfieldCommand(client *c) {
highest_write_offset
))
==
NULL
)
return
;
}
addReply
MultiBulk
Len
(
c
,
numops
);
addReply
Array
Len
(
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
);
addReply
Null
(
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
);
addReply
Null
(
c
);
}
}
changes
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment