1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 13:50:36 +00:00
QB64-PE/source
github-actions[bot] 863029ddfd Math evaluator: values that round to zero can crash QB64pe
The math evaluator already contains a few checks for zero when we're
executing operations that could cause a `Divide By Zero` error, but the
actual value input is floating point and can get rounded to zero when
the operation happens. This effectively allows zero values to bypass the
checks to prevent them from being evaluated.

To avoid the error completely we need to check that the rounded value is
not zero, rather than the initial value. FIX() is used to make sure
values such a `-.1` round to zero and are avoided. I also applied FIX()
when we actually execute the operation, just to ensure the same
behavior.
2022-07-09 03:23:20 -04:00
..
global Update version to v0.8.2 2022-06-10 22:35:38 -04:00
ide Semi-support local links 2022-07-06 16:13:02 +02:00
subs_functions Fix command templates 2022-06-13 02:15:25 +02:00
utilities Add C++ compiler settings dialog 2022-05-30 23:15:04 -04:00
.gitignore Don't ignore .bas files in source directory 2022-04-28 17:20:45 -04:00
icon.rc Temporarally add build steps back 2022-05-07 19:57:38 -04:00
qb64.bas Math evaluator: values that round to zero can crash QB64pe 2022-07-09 03:23:20 -04:00
qb64.ico Proper embedding of qb64.ico into the Windows binary. 2016-09-04 12:12:30 -03:00