This commit is contained in:
rw 2015-05-09 16:10:03 -07:00
parent 3dd54424c0
commit e11da87a24
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ func (b *Builder) StartObject(numfields int) {
b.vtable = make([]UOffsetT, numfields) b.vtable = make([]UOffsetT, numfields)
} else { } else {
b.vtable = b.vtable[:numfields] 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 b.vtable[i] = 0
} }
} }
@ -196,7 +196,7 @@ func (b *Builder) growByteBuffer() {
middle := newLen / 2 middle := newLen / 2
copy(b.Bytes[middle:], b.Bytes[:middle]) copy(b.Bytes[middle:], b.Bytes[:middle])
for i := 0 ; i < middle; i++ { for i := 0; i < middle; i++ {
b.Bytes[i] = 0 b.Bytes[i] = 0
} }
} }