Fix 32bit-system integer overflow (test only)

For #277
This commit is contained in:
Robert
2015-09-25 13:57:17 -07:00
parent ff9e539cc5
commit 781c39c708

View File

@@ -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: