[PATCH] Fix bunch of printf warnings

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Jan Engelhardt jengelh at inai.de
Sun Oct 26 17:29:21 UTC 2014


On Sunday 2014-10-26 13:04, Peter Stuge wrote:
>> > > So what type is the result of "unsigned int - size_t"?
>> > size_t, because it is of higher rank.
>> How come it has higher rank?
>I'd appreciate an answer to this. "because" isn't it.

Then you will be disappointed, because "because it is" is the answer - 
the standards body defined it to be that way.
https://www.securecoding.cert.org/confluence/display/seccode/INT02-C.+Understand+integer+conversion+rules




More information about the OpenBSC mailing list