Numeric problem?

Gerardo Richarte gr at
Wed May 20 00:04:15 UTC 1998

Does anybody has this problem:

try doing     -1e10/1  ==> error: LargeNegativeInteger doesNotUnderstand
highBit.  Actually this is not the message, but it's something equivalent (I
can't check it now or here)

	To fix it I needed to write:
	^ self negated highBit

and change something in SmallInteger>>highBit.

I'm not sure if this is a good solution, but it seems to work for me.

BTW: Why is there a self isNegative ifTrue: [] in
LargePositiveInteger>>highBit (shouldn't it be in LargeNegativeInteger?,
whithout the self isNegative..)

	Buggy Bye!

More information about the Squeak-dev mailing list