You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Alex Lobunets (JIRA)" <ji...@apache.org> on 2015/10/16 14:30:05 UTC
[jira] [Updated] (THRIFT-3389) (type int8) as type byte in argument
to oprot.WriteByte
[ https://issues.apache.org/jira/browse/THRIFT-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Lobunets updated THRIFT-3389:
----------------------------------
Description:
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
was:
The following structure:
struct SomeData {
1: byte pos,
//...
}
leads to the following error when compiling to Go:
ttypes.go:274: cannot use int8(p.Pos) (type int8) as type byte in argument to oprot.WriteByte
> (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)