Paolo Bonzini wrote:
> crewman6 gmail.com wrote:
>> _______________________________________________
>> help-smalltalk mailing list
>> help-smalltalk gnu.org
>>
http://lists.gnu.org/mailman/listinfo/help-smalltalk
>
> Thanks, I'll try to reproduce the failures on Debian
G4.
Actually it does not depend on the OS, but rather on the
availability of
GMP. It is a stupid off-by-one error in LargeInteger
division. When
the result of the division has a number >=128 in its MSB,
the result is
turned into a negative number.
The easiest fix is to allocate an extra byte for the result,
since
#primDivide: is supposed to run on positive numbers only.
Paolo
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|