The code says INT32. Something to worry about ? Why you are not using (u)int32_t ?
re, wh Am 09.06.2011 21:57, schrieb Daniel Stone: > From: Derek Foreman <[email protected]> > > UINT32, not float. > > Signed-off-by: Derek Foreman <[email protected]> > Reviewed-by: Daniel Stone <[email protected]> > --- > src/properties.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/properties.c b/src/properties.c > index 299a444..8370c0b 100644 > --- a/src/properties.c > +++ b/src/properties.c > @@ -646,11 +646,11 @@ SetProperty(DeviceIntPtr dev, Atom property, > XIPropertyValuePtr prop, > para->coasting_friction = coast_speeds[1]; > } else if (property == prop_pressuremotion) > { > - float *press; > - if (prop->size != 2 || prop->format != 32 || prop->type != > float_type) > + INT32 *press; > + if (prop->size != 2 || prop->format != 32 || prop->type != > XA_INTEGER) > return BadMatch; > > - press = (float*)prop->data; > + press = (INT32*)prop->data; > if (press[0] > press[1]) > return BadValue; > _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
