diff options
author | Felix Lange <fjl@twurst.com> | 2014-12-09 17:41:47 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2014-12-09 17:58:46 +0800 |
commit | 93e858f88ef9a9a572c2dabd4aef8bbbd678dd97 (patch) | |
tree | 03136e2dcfaae7bedc1c39928d3e891a128f9159 /rlp/typecache.go | |
parent | 4f12f0697e645a567fac9f13ed8cdb25e1218b84 (diff) | |
download | go-tangerine-93e858f88ef9a9a572c2dabd4aef8bbbd678dd97.tar.gz go-tangerine-93e858f88ef9a9a572c2dabd4aef8bbbd678dd97.tar.zst go-tangerine-93e858f88ef9a9a572c2dabd4aef8bbbd678dd97.zip |
rlp: remove support for signed integer types
There is no agreement on how to encode negative integers
across implementations. cpp-ethereum doesn't support them either.
Diffstat (limited to 'rlp/typecache.go')
-rw-r--r-- | rlp/typecache.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rlp/typecache.go b/rlp/typecache.go index f2595dac8..52e68a3c5 100644 --- a/rlp/typecache.go +++ b/rlp/typecache.go @@ -57,6 +57,6 @@ func genTypeInfo(typ reflect.Type) (info *typeinfo, err error) { return info, nil } -func isInteger(k reflect.Kind) bool { - return k >= reflect.Int && k <= reflect.Uintptr +func isUint(k reflect.Kind) bool { + return k >= reflect.Uint && k <= reflect.Uintptr } |