parseint bitsize is 8

This commit is contained in:
siddontang 2014-07-16 11:29:44 +08:00
parent dfee4df618
commit 4f203e9b5d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}