From 4f203e9b5d9db4fcd38a88a1784b41e5fcc18393 Mon Sep 17 00:00:00 2001 From: siddontang Date: Wed, 16 Jul 2014 11:29:44 +0800 Subject: [PATCH] parseint bitsize is 8 --- ledis/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledis/util.go b/ledis/util.go index d5f24d1..770bca1 100644 --- a/ledis/util.go +++ b/ledis/util.go @@ -79,7 +79,7 @@ func StrInt8(v []byte, err error) (int8, error) { } else if v == nil { return 0, nil } else { - res, err := strconv.ParseInt(String(v), 10, 32) + res, err := strconv.ParseInt(String(v), 10, 8) return int8(res), err } }