[PATCH libinput 1/3] test: Handle 32 bit msec time overflows
Peter Hutterer
peter.hutterer at who-t.net
Mon Apr 11 01:51:03 UTC 2016
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, causing the tests to fail.
>
> This commit fixes this by always casting the millisecond 64 bit unsigned
> integer to a 32 unsigned integer, triggering the same overflow.
>
> Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
all three pushed, thanks.
Cheers,
Peter
More information about the wayland-devel
mailing list