lua-users home
lua-l archive

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


>> > Why the message is not "format ‘%PRId32’ expects type ‘int32_t’,
>> > but argument 2 has type ‘int64_t’ ?
>>
>> I think that is because ...
>
> I know that. The question was rhetorical...

Sorry for taking it as a real question.

>> the PRI macros should expand to a character
>> string literal containing a length modifier and the length modifiers
>> are only specified for standard types (that is, non-extended types);
>> as follows:
>>
>> [...]
>
> Note that, according to your own words, you are asking why we are using
> a "standard" type instead of an "extended" one (which is optional even
> in C99).

Yes. I was sincerely interested in this design decision.

Regards,
-- 
Lourival Vieira Neto