[BUG][FIX] arithmetic primitive Fails

Stephan Rudlof sr at evolgo.de
Mon Mar 13 06:16:42 UTC 2000

I'm just reposting this changeset (with [FIX] added), because it isn't
in the update stream so far...


Torge Husfeldt wrote:
> Hi All,
> I found a bug in a more or less recent 2.8a (updates through #1789 vm 2.7
> build 8 from 01/15/2000) the primitive 12 (primitiveDiv) fails with no
> paricular reason other than that it can't deal with operating on only
> SmallInts and having to return a LargePositiveInteger in the following
> special case:
> SmallInt minVal // -1
> which should retrun
> SmallInt minVal abs
> which is the same as
> SmallInt maxVal +1.
> Since this is happening only with this special combination I think the
> solution is a simple test in case of primitive fail. Like in the attached
> cs.
> Regards,
> Torge
> P.S.: In fact the call gets delegated to #quo: (primitiveQuo, 13) which also
> fails
> and that's the point where I inserted the test.
>   ------------------------------------------------------------------------
>                   Name: quoFix.2.cs
>    quoFix.2.cs    Type: unspecified type (application/octet-stream)
>               Encoding: quoted-printable

Stephan Rudlof (sr at evolgo.de)
   "Genius doesn't work on an assembly line basis.
    You can't simply say, 'Today I will be brilliant.'"
    -- Kirk, "The Ultimate Computer", stardate 4731.3

More information about the Squeak-dev mailing list