Re: [PATCH v17 02/14] compositor-drm: Avoid cast by using unsigned loop index

2018-07-09 Thread Pekka Paalanen
On Mon, 9 Jul 2018 14:23:08 +0100 Daniel Stone wrote: > ARRAY_LENGTH returns a size_t; rather than casting its result to > int so we can compare to our signed index variable, just declare the > index as a compatible type in the first place. > > Signed-off-by: Daniel Stone > --- > libweston/co

[PATCH v17 02/14] compositor-drm: Avoid cast by using unsigned loop index

2018-07-09 Thread Daniel Stone
ARRAY_LENGTH returns a size_t; rather than casting its result to int so we can compare to our signed index variable, just declare the index as a compatible type in the first place. Signed-off-by: Daniel Stone --- libweston/compositor-drm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-