[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] ZeroDivide bug in float printing
From: |
Derek Zhou |
Subject: |
Re: [Help-smalltalk] ZeroDivide bug in float printing |
Date: |
Fri, 29 Mar 2019 18:15:40 +0800 |
User-agent: |
mu4e 0.9.18; emacs 24.5.1 |
Holger Freyther writes:
>> On 29. Mar 2019, at 00:07, Derek Zhou <address@hidden> wrote:
>>
>> list,
>>
>
> thanks for looking into it!
>
>
>> There were discussion on this list about this bug in the debian package:
>
> Are you aware of:
>
> http://git.savannah.gnu.org/cgit/smalltalk.git/commit/libgst/interp.inl?id=72ada189aba0283c551ead16635c1983968080b8
That's good; however there are poor poeple still stuck with old
compilers
>> I propose to change 3 into a more conservative and slower test
>> such as:
>>
>> (MAX_ST_INT / abs(b)) < abs(a) ? OVERFLOW : OK
>
> Overflow checking requires lots of thinking. E.g. have you considered
> where abs(a) < 0? I would prefer if we can exclusively use the compiler
> primitive.
compiler primitives are nice; but there should be fallback path that
also work