[Vm-dev] 0.0 is negative with CogVM

Eliot Miranda eliot.miranda at gmail.com
Wed Sep 22 06:37:09 UTC 2010


On Mon, Sep 20, 2010 at 7:56 AM, Levente Uzonyi <leves at elte.hu> wrote:

>
> Hi!
>
>
> I downloaded the prebuilt CogVM from
> http://www.mirandabanda.org/files/Cog/VM/VM.r2310/ for Windows and found
> that 0.0 has strange behavior:
>
> 0.0 negative. "true"
> 0.0 < 0. "true"
> 0.0 as: WordArray. "a WordArray(0 0)"
>
> while in SqueakVM
>
> 0.0 negative. " false"
> 0.0 < 0. "false"
> 0.0 as: WordArray. "a WordArray(0 0)"
>

Fixed in r2312.  I had misread the code generated by gcc and instead of
transforming a < b into !(b > a) and a <= b into (!b >= a) I had transformed
a < b into !(b >= a) and a <= b into !(b > a).  Tricky.

Eliot


>
> Levente
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20100921/a468cc06/attachment.htm


More information about the Vm-dev mailing list