Re: [Spice-devel] [spice-gtk v1 3/3] Fix clang's double-promotion warning

2017-12-20 Thread Frediano Ziglio
> > From: Victor Toso > > Casting to gdouble instead to float to avoid the warning and perhaps > increase the precision. > > spice-widget-egl.c:573:28: error: implicit conversion increases > floating-point precision: 'float' to 'gdouble' (aka 'double') > tx = ((float)d->area.x / (float)d->e

[Spice-devel] [spice-gtk v1 3/3] Fix clang's double-promotion warning

2017-12-20 Thread Victor Toso
From: Victor Toso Casting to gdouble instead to float to avoid the warning and perhaps increase the precision. spice-widget-egl.c:573:28: error: implicit conversion increases floating-point precision: 'float' to 'gdouble' (aka 'double') tx = ((float)d->area.x / (float)d->egl.scanout.width);