rvelthuis / DelphiBigNumbers

BigInteger and BigDecimal for Delphi
http://rvelthuis.de/programs/bigintegers.html
BSD 2-Clause "Simplified" License
119 stars 62 forks source link

disable OVERFLOW checks for NumberOfTrailingZeros() purepascal version #15

Open jdavison-mo opened 4 years ago

jdavison-mo commented 4 years ago

Hi Rudy,

I found that this pure pascal version which is used on Linux64 crashes when OVERFLOWCHECKS are turned on. Are you able to verify that this is expected and that overflowchecks should be turned off?

The unit does not seem to be explicit about whether overflowchecks be enabled or not is this something you have considered? In any case i've made it conditionally turn it off and on again only if it was turned off.

Thanks for reviewing.

Jared