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.
|
// 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.
|
||||||
|
|
Loading…
Reference in New Issue