mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
Fixed long cast to int in flexbufferbuilder.java (#7059)
This commit is contained in:
parent
bc901436db
commit
e090d8da17
1 changed files with 1 additions and 1 deletions
|
|
@ -763,7 +763,7 @@ public class FlexBuffersBuilder {
|
|||
// Compute relative offset.
|
||||
long offset = offsetLoc - iValue;
|
||||
// Does it fit?
|
||||
int bitWidth = widthUInBits((int) offset);
|
||||
int bitWidth = widthUInBits(offset);
|
||||
if (((1L) << bitWidth) == byteWidth)
|
||||
return bitWidth;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue