From 17cbb770f0f21201ab9198e538e2253b12597e8f Mon Sep 17 00:00:00 2001 From: Tao Wen Date: Thu, 9 Feb 2017 13:35:58 +0800 Subject: [PATCH] fix issue on 32bit platform --- feature_iter_object.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feature_iter_object.go b/feature_iter_object.go index 06b1525..189fc2e 100644 --- a/feature_iter_object.go +++ b/feature_iter_object.go @@ -28,7 +28,7 @@ func (iter *Iterator) ReadObject() (ret string) { } func (iter *Iterator) readFieldHash() int32 { - hash := 0x811c9dc5 + hash := int64(0x811c9dc5) c := iter.nextToken() if c == '"' { for { @@ -57,7 +57,7 @@ func (iter *Iterator) readFieldHash() int32 { } func calcHash(str string) int32 { - hash := 0x811c9dc5 + hash := int64(0x811c9dc5) for _, b := range str { hash ^= int(b) hash *= 0x1000193