From 781c39c708b746456af300957227e14a430d6b76 Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 25 Sep 2015 13:57:17 -0700 Subject: [PATCH] Fix 32bit-system integer overflow (test only) For #277 --- tests/go_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/go_test.go b/tests/go_test.go index 66bac277c..4eb8d3e6a 100644 --- a/tests/go_test.go +++ b/tests/go_test.go @@ -368,7 +368,7 @@ func checkFuzz(fuzzFields, fuzzObjects int, fail func(string, ...interface{})) { for j := 0; j < fuzzFields; j++ { f := flatbuffers.VOffsetT((flatbuffers.VtableMetadataFields + j) * flatbuffers.SizeVOffsetT) - choice := int(l.Next()) % testValuesMax + choice := l.Next() % uint32(testValuesMax) switch choice { case 0: