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:
3dd5442
)
gofmt
author
rw
<me@rwinslow.com>
Sat, 9 May 2015 23:10:03 +0000
(16:10 -0700)
committer
rw
<me@rwinslow.com>
Sat, 9 May 2015 23:10:03 +0000
(16:10 -0700)
go/builder.go
patch
|
blob
|
history
diff --git
a/go/builder.go
b/go/builder.go
index
a61448d
..
0484af7
100644
(file)
--- a/
go/builder.go
+++ b/
go/builder.go
@@
-58,7
+58,7
@@
func (b *Builder) StartObject(numfields int) {
b.vtable = make([]UOffsetT, numfields)
} else {
b.vtable = b.vtable[:numfields]
- for i := 0
; i < len(b.vtable)
; i++ {
+ for i := 0
; i < len(b.vtable)
; i++ {
b.vtable[i] = 0
}
}
@@
-196,7
+196,7
@@
func (b *Builder) growByteBuffer() {
middle := newLen / 2
copy(b.Bytes[middle:], b.Bytes[:middle])
- for i := 0
; i < middle; i++ {
+ for i := 0; i < middle; i++ {
b.Bytes[i] = 0
}
}