You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2008/12/17 19:59:44 UTC

[jira] Created: (THRIFT-233) IDL doesn't support negative hex literals

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
            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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.