projects
/
platform
/
upstream
/
flatbuffers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
334c6be
)
GetUOffsetT must get value by GetUint32 not GetInt32 (#6072)
author
Thanabodee Charoenpiriyakij
<thanabodee.c@linecorp.com>
Fri, 19 Feb 2021 02:38:25 +0000
(09:38 +0700)
committer
GitHub
<noreply@github.com>
Fri, 19 Feb 2021 02:38:25 +0000
(18:38 -0800)
go/encode.go
patch
|
blob
|
history
diff --git
a/go/encode.go
b/go/encode.go
index
72d4f3a
..
a2a5798
100644
(file)
--- 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(Get
I
nt32(buf))
+ return UOffsetT(Get
Ui
nt32(buf))
}
// GetSOffsetT decodes a little-endian SOffsetT from a byte slice.