blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

Operator /= silently crashes app (division by zero) #96

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: engor

If we use operator /= of integer type with float value less than 1, our app will crash. Demo code:

Function Main()
    Local iii:=10
    iii/=0.5
    Print iii
End