#1344 Parser fails to handle hex constants with high bit set

closed-fixed
nobody
None
5
2015-03-23
2014-03-06
No

gnuplot> print 0x7fabcdef
2141965807
gnuplot> print 0x8fabcdef
^
warning: integer overflow; changing to floating point
2410401263.0

gnuplot> print 0x8fabcdef
^
unexpected or unrecognized token

The "integer overflow" warning is understandable, although I think a hex constant should be accepted as an unsigned long rather than as an overflow. But the second, fatal error, is a parser failure.

Discussion

  • Ethan Merritt

    Ethan Merritt - 2014-03-06
    • status: open --> pending-fixed
     
  • Ethan Merritt

    Ethan Merritt - 2014-03-08
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.