From 93e858f88ef9a9a572c2dabd4aef8bbbd678dd97 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 9 Dec 2014 10:41:47 +0100 Subject: 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. --- rlp/typecache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rlp/typecache.go') 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 } -- cgit