Menu

#21 Incorrect input of hexadecimals

2.x
pending
None
5
2018-04-27
2018-04-26
tkzv
No

In interactive mode letters a-f may be treated as variables rather than part of hexadecimal numbers. First time a variable equal 0, and each time the result is stored in such variable. The command line mode seems unaffected.

Here is an example:
$ wcalc
Enter an expression to evaluate, q to quit, or ? for help:
-> a
^
Undefined variable: a
-> 0x1a+0x12
= 18
-> a
= 18
-> 0x1a+0x12
= 36
-> a
= 36

Discussion

  • Kyle Wheeler

    Kyle Wheeler - 2018-04-27

    Thanks for the bug report! I've already fixed that bug in the code... I just need to push out a new release. It'll be in 2.5.1 (coming soon!).

    The fix was in this commit: https://sourceforge.net/p/w-calc/code/965/

     
  • Kyle Wheeler

    Kyle Wheeler - 2018-04-27
    • status: open --> pending
    • assigned_to: Kyle Wheeler
     

Log in to post a comment.

MongoDB Logo MongoDB