Proof positive the "signedness of char *" warning is useless.

Mike Frysinger vapier at gentoo.org
Wed Nov 30 13:44:41 UTC 2005


On Wed, Nov 30, 2005 at 07:36:59AM -0600, Rob Landley wrote:
> On Wednesday 30 November 2005 03:25, Ihno Krumreich wrote:
> > In all other cases you are just 
> > hiding the possible bugs (especially if the compiler changes behaviour or
> > the code is compiled by a new compiler).
> 
> Have we ever seen a bug due to the signedness of a char?
> 
> Signedness of int, sure.  And short/int mismatch.  And int instead of long (or 
> instead of size_t, or that instead of ssize_t) all the time.

ive seen one or two (not in busybox), but just when the char was used
like an 8bit int instead of holding an actual char
-mike



More information about the busybox mailing list