[Vm-dev] Float math in VMMaker-dtl.123

Andreas Raab andreas.raab at gmx.de
Wed Jul 1 15:32:18 UTC 2009


Ouch. Yeah, I'd say that's right...

Bert Freudenberg wrote:
> 
> I just noticed that
> 
> bytecodePrimGreaterOrEqual
>     ...
>     aBool := self primitiveFloatLess: rcvr thanArg: arg.
>     successFlag ifTrue: [^self booleanCheat: aBool not].
> 
> got changed to
> 
> bytecodePrimGreaterOrEqual
>     ...
>     aBool := self primitiveFloatGreaterOrEqual: rcvr toArg: arg.
>     successFlag ifTrue: [^self booleanCheat: aBool not].
> 
> but shouldn't that be
> 
> bytecodePrimGreaterOrEqual
>     ...
>     aBool := self primitiveFloatGreaterOrEqual: rcvr toArg: arg.
>     successFlag ifTrue: [^self booleanCheat: aBool].
> 
> and similarly for bytecodePrimLessOrEqual?
> 
> - Bert -
> 
> 


More information about the Vm-dev mailing list