[Vm-dev] Suspicious C Compiler warning in Spur garbage collector

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Wed Jul 20 15:38:08 UTC 2016


Hi Eliot,
effectively, I see no code for declaring this inst. var. type, so it must
default to sqInt...
I'm about to commit.

2016-07-20 17:19 GMT+02:00 Eliot Miranda <eliot.miranda at gmail.com>:

>
> Hi Nicolas,
>
> _,,,^..^,,,_ (phone)
>
> > On Jul 20, 2016, at 9:44 AM, Nicolas Cellier <
> nicolas.cellier.aka.nice at gmail.com> wrote:
> >
> > Here is the raw complaint:
> >
> > ../../spur64src/vm/gcc3x-cointerp.c:18467:28: warning: implicit
> conversion from 'double' to 'sqInt' (aka 'long long') changes value from
> 0.9 to 0 [-Wliteral-conversion]
> >         GIV(tenuringProportion) = 0.9;
>
> tenuringProportion should be defined as having type double in the
> class-side #declareCVarsIn: in the class that defines the inst var
> (SpurGenerationScavenger or SpurMemoryManager).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160720/0b400212/attachment.htm


More information about the Vm-dev mailing list