Minor improvement (#7766)

This commit is contained in:
Saman
2023-01-08 11:40:03 +08:00
committed by GitHub
parent c2668fc0e2
commit 5638a6a900
4 changed files with 7 additions and 7 deletions

View File

@@ -1845,7 +1845,7 @@ class Verifier FLATBUFFERS_FINAL_CLASS {
uint8_t len = 0;
auto vtype = ToFixedTypedVectorElementType(r.type_, &len);
if (!VerifyType(vtype)) return false;
return VerifyFromPointer(p, r.byte_width_ * len);
return VerifyFromPointer(p, static_cast<size_t>(r.byte_width_) * len);
}
default: return false;
}