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