ghkweon / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

Random() can raise an exception when compiled with range checking on #275

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Build with Range Check and Bounds Check enabled
2.  Run a script that calls Random in a loop 1000 times or so
3.  Oops

What is the expected output? What do you see instead?

Code using bit-based arithmetic for which overflows are not a problem should 
work correctly even when the project is compiled with overflow checks, by 
selectively disabilng such checks with compiler directives.

Original issue reported on code.google.com by masonwhe...@gmail.com on 25 May 2012 at 8:28

GoogleCodeExporter commented 8 years ago
Disabled oveflow checks

Original comment by zar...@gmail.com on 29 May 2012 at 8:28