diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-19 21:57:42 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-04-19 21:57:42 +1000 |
commit | 6e4b80a35e5b763d4a854f1c10443b95e6ad51bd (patch) | |
tree | c7ebd2b715c1306ed3ddf66d032676e4fb1de4d9 /src | |
parent | 1c777e3c1127dec35166007c6e3ca65e34735eb5 (diff) |
Silence a compiler warning by using a uchar instead of a char.
Diffstat (limited to 'src')
-rw-r--r-- | src/XExtInt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c index d017cab..fc018cd 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -879,7 +879,7 @@ static int wireToDeviceEvent(xXIDeviceEvent *in, XIDeviceEvent* out) { int len, i; - char *ptr; + unsigned char *ptr; FP3232 *values; out->type = in->type; @@ -897,7 +897,7 @@ wireToDeviceEvent(xXIDeviceEvent *in, XIDeviceEvent* out) out->event_x = FP1616toDBL(in->event_x); out->event_y = FP1616toDBL(in->event_y); - ptr = (char*)&in[1]; + ptr = (unsigned char*)&in[1]; /* buttons */ len = in->buttons_len * 4; |