Menu

Bug with ^ operator

2019-05-08
2019-05-26
  • Alberto Donda

    Alberto Donda - 2019-05-08

    Hello,

    try:

    10 A=1E20
    20 B=1E20
    30 C=A^B

    the last instruction brings to an immediate and unrecoverable jamming of the PCBASIC (15.08.12)

     
  • Everton da Silva Marques

    I have just tested it on PC-BASIC 2.0.1 and it reported "Overflow".

    You should report issues here: https://github.com/robhagemans/pcbasic/issues

     
  • Rob Hagemans

    Rob Hagemans - 2019-05-26

    Hi, thanks for the report. I can reproduce the issue on 1.2.14. Behaviour on 2.0.x is correct (Overflow error). See bug tracker here: https://github.com/robhagemans/pcbasic/issues/101

     

    Last edit: Rob Hagemans 2019-05-26