test/xi2: Fix infinite loop in test_convert_XITouchOwnershipEvent
authorKeith Packard <keithp@keithp.com>
Thu, 22 Dec 2011 17:35:51 +0000 (09:35 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 22 Dec 2011 17:35:51 +0000 (09:35 -0800)
commite7df42ab68e30588a5e32ed543b0711821daf009
tree28e1f8be0a9bd558349a848a91b590b64f6b5f76
parentf75bdf7fbe757f4603e39139acc3c90538a45e15
test/xi2: Fix infinite loop in test_convert_XITouchOwnershipEvent

The touchid test was using a loop like:

for(i = 1; i < 0xffffffff; i <<= 1)

When 'i' is a 32-bit variable, this infinite loops as it goes from
0x80000000 to 0. 'i' is declared as 'long', which is 32-bit in 32-bit mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
test/xi2/protocol-eventconvert.c