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

IDL doesn't support negative hex literals

VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment