From 2f7cbc730a2e48ba2bc30ec69da86503fc40acc7 Mon Sep 17 00:00:00 2001 From: frankxieke Date: Mon, 25 Jul 2016 21:41:54 +0800 Subject: [PATCH] bitop Not command bug (#248) --- ledis/t_kv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ {