Re: lua_Integer in Lua 5.3
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua_Integer in Lua 5.3
- From: "Liam Devine" <liamdevine@...>
- Date: 2013年12月06日 13:53:51 -0000
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
- References:
- lua_Integer in Lua 5.3, Lourival Vieira Neto
- Re: lua_Integer in Lua 5.3, Coda Highland
- Re: lua_Integer in Lua 5.3, Philipp Janda
- Re: lua_Integer in Lua 5.3, Lourival Vieira Neto
- Re: lua_Integer in Lua 5.3, Philipp Janda
- Re: lua_Integer in Lua 5.3, Alexander Nasonov
- Re: lua_Integer in Lua 5.3, Lourival Vieira Neto
- Re: lua_Integer in Lua 5.3, Roberto Ierusalimschy
- Re: lua_Integer in Lua 5.3, Lourival Vieira Neto
- Re: lua_Integer in Lua 5.3, Roberto Ierusalimschy