From 0ba8106ab90712f82542c9b956a4527d74b405c0 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 16 Apr 2003 16:53:15 +0000 Subject: cast input_event.value as (int) and negatives work; why do they declare it unsigned int if they expect negatives? svn path=/trunk/externals/hcs/; revision=568 --- rawmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rawmouse.c b/rawmouse.c index 054730b..763aae0 100644 --- a/rawmouse.c +++ b/rawmouse.c @@ -292,7 +292,7 @@ static int rawmouse_read(t_rawmouse *x,int fd) axis_num = 2; break; } - outlet_float (x->x_axis_out[axis_num], x->x_input_event.value); + outlet_float (x->x_axis_out[axis_num], (int)x->x_input_event.value); } return 1; -- cgit v1.2.1