>>>>> "AC" == Alan Coopersmith <alan.coopersm...@oracle.com> writes:

>> Should the call to floor(3) when lrint(3) is unavailable include a cast?

AC> There's already casts at the call sites, though not always at the exact
AC> same place:

AC>> scale.table.x[(int) x] = (Position) myrint(sw->scale.scale_x * x);

AC> (so they're now casting long int to short int, instead of double to short 
int).

I was thinking of the non-lrint(3) case; floor(3) returns a double, so
(Position)floor(...) should give the same error, yes?

-JimC
-- 
James Cloos <cl...@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to