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

Eliot Miranda eliot.miranda at gmail.com
Wed Jul 20 15:19:33 UTC 2016


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).


More information about the Vm-dev mailing list