Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
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.