summaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorThanabodee Charoenpiriyakij <thanabodee.c@linecorp.com>2021-02-19 09:38:25 +0700
committerGitHub <noreply@github.com>2021-02-18 18:38:25 -0800
commit54dc09e8ac4afc349b709e31c6380246f265bed6 (patch)
treee41419d1b2ac10a022f295dc4ecefd1828379388 /go
parent334c6be4964c3e0840105196405ac1419f158101 (diff)
downloadflatbuffers-54dc09e8ac4afc349b709e31c6380246f265bed6.tar.gz
flatbuffers-54dc09e8ac4afc349b709e31c6380246f265bed6.tar.bz2
flatbuffers-54dc09e8ac4afc349b709e31c6380246f265bed6.zip
GetUOffsetT must get value by GetUint32 not GetInt32 (#6072)
Diffstat (limited to 'go')
-rw-r--r--go/encode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/encode.go b/go/encode.go
index 72d4f3a1..a2a57981 100644
--- a/go/encode.go
+++ b/go/encode.go
@@ -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.