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

Re: GCC 4.1 now the default GCC version for etch

On Mon, Jun 19, 2006 at 02:59:37PM +0200, Henning Makholm wrote:
> The fix should be somehow unclumsified, though. Currently I inject
> some horrible runtime testing in the configure script to find out
> whether the clib supports the %zu format of C99, but that breaks
> crosscompilability (which I'm not sure worked before, but still...)

What is the problem with just assuming that %zu works? C99 is not 7
years old and this is one of the easier things.

> Would it be safe to assume that a size_t can always be cast losslessly
> to an unsigned long (and then printed with %lu), or are there systems
> on which only an unsigned long long will do?

unsigned long is not sufficient.


Captain's Log, star date 21:34.5...

Attachment: signature.asc
Description: Digital signature

Reply to: