Re: [PATCH v2 1/9] lib/test_printf: Mark big constant with ULL

From: Luc Van Oostenryck
Date: Sun Feb 18 2018 - 07:58:44 EST


On Fri, Feb 16, 2018 at 11:07:03PM +0200, Andy Shevchenko wrote:
> Sparse complains that constant is so bit for unsigned long on 64-bit
> architecture.
>
> lib/test_printf.c:217:54: warning: constant 0xffff0123456789ab is so big it is unsigned long
> lib/test_printf.c:246:54: warning: constant 0xffff0123456789ab is so big it is unsigned long
>
> To satisfy everyone, mark the constant with ULL.

It should be 'UL' not 'ULL' since for architectures a pointer and
a unsigned long have the ame size while on 32bit archs, long long
are (or may?) 64bit.

-- Luc Van Oostenryck