Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-233

IDL doesn't support negative hex literals

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Component/s: Compiler (General)
    • Labels:
      None

      Description

      if you try a field def like

      i32 my_field = -0x7fff
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              bryanduxbury Bryan Duxbury
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: