Re: [dev] [PATCH] [sbase] printf: Avoid casts for better portability

From: sin <sin_AT_2f30.org>
Date: Fri, 31 Jan 2014 21:43:29 +0000

On Fri, Jan 31, 2014 at 07:04:46PM +0100, FRIGN wrote:
> On Fri, 31 Jan 2014 18:43:50 +0100
> FRIGN <dev_AT_frign.de> wrote:
>
> > Using the C99 PRIu32-macro and %zu-format-specifier increase
> > portability and avoid these unnecessary casts.
>
> Argh, I forgot C90 didn't support the z-format-specifier.
> So, we won't get around casting len to unsigned long -.-.
>
> Please let me know if I should check the code for more of those cases.

I was thinking about exactly the same issues today when I did this patch.

Do you guys think it would make sense to move sbase to C99?
We are already using long long in the code.
Received on Fri Jan 31 2014 - 22:43:29 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 31 2014 - 22:48:06 CET