mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 21:14:13 +00:00
gofmt
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user