Repository: lucy-clownfish Updated Branches: refs/heads/master 89fc04640 -> f85330441
Fix Go build on 32-bit Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/f8533044 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/f8533044 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/f8533044 Branch: refs/heads/master Commit: f85330441041692ac59af452f6d061e195c0a589 Parents: 89fc046 Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Wed Mar 2 12:33:55 2016 +0100 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Wed Mar 2 12:33:55 2016 +0100 ---------------------------------------------------------------------- runtime/go/clownfish/clownfish.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/f8533044/runtime/go/clownfish/clownfish.go ---------------------------------------------------------------------- diff --git a/runtime/go/clownfish/clownfish.go b/runtime/go/clownfish/clownfish.go index 4a2ed77..b24405a 100644 --- a/runtime/go/clownfish/clownfish.go +++ b/runtime/go/clownfish/clownfish.go @@ -368,13 +368,13 @@ func goToInteger(value interface{}, nullable bool) unsafe.Pointer { case int: return unsafe.Pointer(C.cfish_Int_new(C.int64_t(v))) case uint: - if v > math.MaxInt64 { + if uint64(v) > math.MaxInt64 { mess := fmt.Sprintf("uint value too large: %v", v) panic(NewErr(mess)) } return unsafe.Pointer(C.cfish_Int_new(C.int64_t(v))) case uintptr: - if v > math.MaxInt64 { + if uint64(v) > math.MaxInt64 { mess := fmt.Sprintf("uintptr value too large: %v", v) panic(NewErr(mess)) }