[ https://issues.apache.org/jira/browse/THRIFT-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14961057#comment-14961057 ]
Jens Geyer commented on THRIFT-3389: ------------------------------------ Correct. int8 is the right one, as [all thrift integers are alaways signed|https://thrift.apache.org/docs/types]. The IDL type {{byte}} is just unfortunately named and misleading. > (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)