mirror of
https://github.com/google/flatbuffers.git
synced 2025-04-08 09:12:14 +08:00
GetUOffsetT must get value by GetUint32 not GetInt32 (#6072)
This commit is contained in:
parent
334c6be496
commit
54dc09e8ac
@ -118,7 +118,7 @@ func GetFloat64(buf []byte) float64 {
|
||||
|
||||
// GetUOffsetT decodes a little-endian UOffsetT from a byte slice.
|
||||
func GetUOffsetT(buf []byte) UOffsetT {
|
||||
return UOffsetT(GetInt32(buf))
|
||||
return UOffsetT(GetUint32(buf))
|
||||
}
|
||||
|
||||
// GetSOffsetT decodes a little-endian SOffsetT from a byte slice.
|
||||
|
Loading…
x
Reference in New Issue
Block a user