From f64a85c981a56deb2fdf7d5e6fe3b9d9c895fd71 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 17 Jun 2014 14:13:01 +1000 Subject: [PATCH] tablet: use "int32_t", not "signed" stdint is a lot nicer, and safer once we're in the habit. Signed-off-by: Peter Hutterer Reviewed-by: Stephen Chandler Paul --- src/evdev-tablet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index 0d37e582..5596e13e 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -219,7 +219,7 @@ tablet_process_misc(struct tablet_dispatch *tablet, { switch (e->code) { case MSC_SERIAL: - if (e->value != (signed)tablet->current_tool_serial && + if (e->value != (int32_t)tablet->current_tool_serial && e->value != -1) { tablet->current_tool_serial = e->value; tablet_set_status(tablet, TABLET_TOOL_UPDATED);