[PATCH] Remove 64 bit compilation warnings

Shaw Vrana shaw at vranix.com
Tue Nov 22 17:24:50 UTC 2005


Shaun Jackman wrote:
> The double cast serves to mask a serious error by hiding information
> from the compiler. The variable `i' is declared as an unsigned int,
> which is not large enough to hold a pointer on certain platforms.
> Casting first to an intptr_t, which is large enough, and then casting
> to a caddr_t allows the compiler to believe it has enough information
> to create a pointer, when in fact it does not.

Thanks for the explanation.  Here's an updated patch.

Shaw
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bb.diff2.txt
Url: http://lists.busybox.net/pipermail/busybox/attachments/20051122/12bdcfd4/attachment.txt 


More information about the busybox mailing list