[
https://issues.apache.org/jira/browse/THRIFT-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14513099#comment-14513099
]
ASF GitHub Bot commented on THRIFT-233:
---------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/thrift/pull/461
> 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)