[Go] Change two more sites to use enum types (#5359)

Fixes #5357 (regression introduced by #5235)
This commit is contained in:
David Reiss
2019-05-20 14:46:36 -07:00
committed by Wouter van Oortmerssen
parent fe83b68ac6
commit c5e2d37337
6 changed files with 22 additions and 21 deletions

View File

@@ -62,7 +62,7 @@ func (rcv *Vec3) Test3(obj *Test) *Test {
return obj
}
func CreateVec3(builder *flatbuffers.Builder, x float32, y float32, z float32, test1 float64, test2 byte, test3_a int16, test3_b int8) flatbuffers.UOffsetT {
func CreateVec3(builder *flatbuffers.Builder, x float32, y float32, z float32, test1 float64, test2 Color, test3_a int16, test3_b int8) flatbuffers.UOffsetT {
builder.Prep(8, 32)
builder.Pad(2)
builder.Prep(2, 4)
@@ -70,7 +70,7 @@ func CreateVec3(builder *flatbuffers.Builder, x float32, y float32, z float32, t
builder.PrependInt8(test3_b)
builder.PrependInt16(test3_a)
builder.Pad(1)
builder.PrependByte(test2)
builder.PrependByte(byte(test2))
builder.PrependFloat64(test1)
builder.Pad(4)
builder.PrependFloat32(z)