lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 06/12/13 11:41, Roberto Ierusalimschy wrote:
Why the message is not "format ‘%PRId32’ expects type ‘int32_t’,
but argument 2 has type ‘int64_t’ ?

Regardless of what I think of this topic.
PRI* macros are expanded to the corresponding built-in format specifiers which on you machine is int hence "%d". int64_t is an alias for long long int on your machine, therefore it is not a different type, and it is quite correct to use that type in the warning message.

The contents of warning messages are for the discretion of the compiler implementers and are not specified by the standard.

--
Liam