More debugger checks (variable ranges)
Posted: Sat May 03, 2003 6:01 pm
Sent to me by another german user:
; Result of PureBasic: 1073741824
; Correct result: -3221225472
The debugger should check a variable overflow and inform the user. Would avoid many false calculations...
Code: Select all
DefType.l a,b,c
a = -1073741824
b = 3
c = a * b
d$ = Str(c)
OpenConsole()
PrintN(d$)
dummy$ = Input()
CloseConsole()
; Correct result: -3221225472
The debugger should check a variable overflow and inform the user. Would avoid many false calculations...
