bitop Not command bug (#248)

This commit is contained in:
frankxieke 2016-07-25 21:41:54 +08:00 committed by siddontang
parent 3a2cbda7f2
commit 2f7cbc730a
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ func (db *DB) BitOP(op string, destKey []byte, srcKeys ...[]byte) (int64, error)
if op == BitNot { if op == BitNot {
for i := 0; i < len(value); i++ { for i := 0; i < len(value); i++ {
value[i] ^= value[i] value[i] = ^value[i]
} }
} else { } else {
for j := 1; j < len(srcKeys); j++ { for j := 1; j < len(srcKeys); j++ {