Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 1999 00:17:43 -0800
From:      "David O'Brien" <obrien@NUXI.com>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: kern/subr_scanf array index of signed char
Message-ID:  <19990128001743.A563@relay.nuxi.com>
In-Reply-To: <199901280207.SAA88572@apollo.backplane.com>; from Matthew Dillon on Wed, Jan 27, 1999 at 06:07:18PM -0800
References:  <199901280204.SAA19979@bubba.whistle.com> <199901280207.SAA88572@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> :Just curious.. why do you need the "(int)" cast?
> 
>     Actually, it could very well be that I don't.  I didn't want to spend
>     the time to check to see if the compiler warned on unsigned-char array
>     indexes.  

When you add casts to quite warnings, please use the minium number of
them.  Even if it takes a little more time to test.  I would much rather
have the warnings than obfuscated code.

-- 
-- David    (obrien@NUXI.com  -or-  obrien@FreeBSD.org)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990128001743.A563>