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

IDL doesn't support negative hex literals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.9.3
    • Compiler (General)
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: