2

Closed

Bug in the operator-

description

There is an ugly bug in the OpHelper.Sub routine which makes result of
IntX(0) - IntX(N) == 0 instead of -N for positive N s.
Possible fix is attached. Also it would be nice to add a few tests for substraction of or from zero (0 - N and N - 0).

file attachments

Closed Jan 16, 2010 at 4:37 PM by Oyster
Thanks for reporting this issue, I have fixed it as suggested and added corresponding unit test. Fix is in release 0.9.3.

comments

lexey wrote Jul 27, 2008 at 10:56 PM

Here is an updated test

wrote Jul 27, 2008 at 10:56 PM

wrote Mar 1, 2009 at 9:33 AM

wrote Jan 16, 2010 at 4:37 PM

wrote Feb 14, 2013 at 2:28 AM

wrote May 16, 2013 at 7:34 AM