mirror of https://github.com/ledisdb/ledisdb.git
bitop Not command bug (#248)
This commit is contained in:
parent
3a2cbda7f2
commit
2f7cbc730a
|
@ -549,7 +549,7 @@ func (db *DB) BitOP(op string, destKey []byte, srcKeys ...[]byte) (int64, error)
|
|||
|
||||
if op == BitNot {
|
||||
for i := 0; i < len(value); i++ {
|
||||
value[i] ^= value[i]
|
||||
value[i] = ^value[i]
|
||||
}
|
||||
} else {
|
||||
for j := 1; j < len(srcKeys); j++ {
|
||||
|
|
Loading…
Reference in New Issue