Re: [PATCH weston] tests: Fix integer overflows on 32-bit systems

2017-12-05 Thread Daniel Stone
Hi Alexandros, On 1 December 2017 at 17:28, Alexandros Frantzis wrote: > Ensure that the integer type used in expressions involving > multiplication with NSEC_PER_SEC is large enough to avoid overflows on > 32-bit systems. In the expressions fixed by this patch a 64-bit type > (long long) is requ

[PATCH weston] tests: Fix integer overflows on 32-bit systems

2017-12-01 Thread Alexandros Frantzis
Ensure that the integer type used in expressions involving multiplication with NSEC_PER_SEC is large enough to avoid overflows on 32-bit systems. In the expressions fixed by this patch a 64-bit type (long long) is required. Signed-off-by: Alexandros Frantzis --- tests/timespec-test.c | 4 ++-- 1