[patch] 1.11.0.svn: compiler warnings when building for i386 arch

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sat May 17 07:42:10 UTC 2008


On Sat, 17 May 2008, Denys Vlasenko wrote:

> On Friday 16 May 2008 23:39, Cristian Ionescu-Idbohrn wrote:
> > On Fri, 16 May 2008, Denys Vlasenko wrote:
> >
> > > Of course. If sizeof(int) != sizeof(size_t), it will fail.
> >
> > I may be too dense here, but I'd be greatful if you would care to
> > explain why sizeof(int) != sizeof(unsigned int).
>
> size_t can be unsigned long on some architectires.

Yes.

But I still wonder how would in that case "%d" fit better than "%u"?
"%ld" or (even better) "%lu" use would be required then.


Cheers,

-- 
Cristian



More information about the busybox mailing list