You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2015/04/26 17:49:38 UTC
[jira] [Resolved] (THRIFT-233) IDL doesn't support negative hex
literals
[ https://issues.apache.org/jira/browse/THRIFT-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer resolved THRIFT-233.
-------------------------------
Resolution: Fixed
Fix Version/s: 0.9.3
Committed, thanks!
> IDL doesn't support negative hex literals
> -----------------------------------------
>
> Key: THRIFT-233
> URL: https://issues.apache.org/jira/browse/THRIFT-233
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (General)
> Reporter: Bryan Duxbury
> Assignee: Jens Geyer
> Priority: Trivial
> Fix For: 0.9.3
>
>
> if you try a field def like
> {code}
> i32 my_field = -0x7fff
> {code}
> the compiler complains. If you try to make the value a two's complement negative number without the sign, then it assumes it was supposed to be a long, and the Java compiler chokes on the assignment.
> It'd be nice if we supported negative hex literals.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)