diff --git a/ledis/t_kv.go b/ledis/t_kv.go index ca32310..624287f 100644 --- a/ledis/t_kv.go +++ b/ledis/t_kv.go @@ -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++ {