Re: [PATCH libinput 1/3] test: Handle 32 bit msec time overflows

2016-04-10 Thread Peter Hutterer
On Fri, Apr 08, 2016 at 03:51:26PM +0800, Jonas Ådahl wrote: > The libinput_*_get_time() returns a 32 bit unsigned integer, but in the > tests we compared them to a 64 bit unsigned integer. This means that > when the 32 bit integer overflowed, we'd still compare to a > non-overflowed 64 bit integer

[PATCH libinput 1/3] test: Handle 32 bit msec time overflows

2016-04-08 Thread Jonas Ådahl
The libinput_*_get_time() returns a 32 bit unsigned integer, but in the tests we compared them to a 64 bit unsigned integer. This means that when the 32 bit integer overflowed, we'd still compare to a non-overflowed 64 bit integer, causing the tests to fail. This commit fixes this by always castin