summaryrefslogtreecommitdiff
path: root/src/wcmXCommand.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-08-24 11:50:25 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-08-25 08:24:51 +1000
commitb4c5e7047e32635d958ba0181eb63451b930521c (patch)
tree91b1f98d3f86dad6ecebaffd7a632e7ea3104347 /src/wcmXCommand.c
parentdf7db361dd8ce04bec486ee7215ae51a2e339d0e (diff)
downloadxf86-input-wacom-b4c5e7047e32635d958ba0181eb63451b930521c.tar.gz
Don't compare unsigned values to < 0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Jason Gerecke <killertofu@gmail.com>
Diffstat (limited to 'src/wcmXCommand.c')
-rw-r--r--src/wcmXCommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wcmXCommand.c b/src/wcmXCommand.c
index 5666bac..fe71bd1 100644
--- a/src/wcmXCommand.c
+++ b/src/wcmXCommand.c
@@ -665,7 +665,7 @@ int wcmSetProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr prop,
values = (CARD32*)prop->data;
- if ((values[0] < 0) || (values[0] > 100))
+ if (values[0] > 100)
return BadValue;
if ((values[1] < 1) || (values[1] > MAX_SAMPLES))