Numeric problem?

Gerardo Richarte gr at fuzzy.uba.ar
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:
LargeNegativeIntegera>>highBit
	^ 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!
	Richie++





More information about the Squeak-dev mailing list