[ https://issues.apache.org/jira/browse/THRIFT-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960604#comment-14960604 ]
Alex Lobunets commented on THRIFT-3389: --------------------------------------- The issue is in the generated writeField1(oprot thrift.TProtocol) function: err := oprot.WriteByte(int8(p.Pos)); err != nil it should be: if err := oprot.WriteByte(byte(p.Pos)); err != ni > (type int8) as type byte in argument to oprot.WriteByte > ------------------------------------------------------- > > Key: THRIFT-3389 > URL: https://issues.apache.org/jira/browse/THRIFT-3389 > Project: Thrift > Issue Type: Bug > Components: Go - Compiler > Affects Versions: 0.9.3 > Environment: OS X 10.11 / thrift: stable 0.9.3 (bottled), HEAD > Reporter: Alex Lobunets > > The following structure: > struct SomeData { > 1: byte pos, > //... > } > leads to the following error when compiling: > ttypes.go:274: cannot use int8(p.Pos) (type int8) as type byte in argument to > oprot.WriteByte -- This message was sent by Atlassian JIRA (v6.3.4#6332)