Commit a35c32e3 authored by Wouter van Oortmerssen's avatar Wouter van Oortmerssen

Merge pull request #282 from google/fix-277

Fix 32bit-system integer overflow (test only)
parents ff9e539c 781c39c7
...@@ -368,7 +368,7 @@ func checkFuzz(fuzzFields, fuzzObjects int, fail func(string, ...interface{})) { ...@@ -368,7 +368,7 @@ func checkFuzz(fuzzFields, fuzzObjects int, fail func(string, ...interface{})) {
for j := 0; j < fuzzFields; j++ { for j := 0; j < fuzzFields; j++ {
f := flatbuffers.VOffsetT((flatbuffers.VtableMetadataFields + j) * flatbuffers.SizeVOffsetT) f := flatbuffers.VOffsetT((flatbuffers.VtableMetadataFields + j) * flatbuffers.SizeVOffsetT)
choice := int(l.Next()) % testValuesMax choice := l.Next() % uint32(testValuesMax)
switch choice { switch choice {
case 0: case 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment