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 12:29:38 UTC

[jira] [Assigned] (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 reassigned THRIFT-233:
---------------------------------

    Assignee: Jens Geyer

> 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
>
> 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)