Date: Wed, 27 Jan 1999 18:11:31 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Matthew Dillon <dillon@apollo.backplane.com> Cc: Archie Cobbs <archie@whistle.com>, current@FreeBSD.ORG Subject: Re: kern/subr_scanf array index of signed char Message-ID: <199901280211.SAA89748@apollo.backplane.com> References: <199901280204.SAA19979@bubba.whistle.com> <199901280207.SAA88572@apollo.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
::> - while (ccltab[*inp]) { ::> + while (ccltab[(int)(unsigned char)*inp]) { : : 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. You can change it back if unsigned char array indexes do not : produce a warning. Eer, by 'change it back' I meant 'remove the (int)'. You have to keep the (unsigned char) cast, of course. -Matt Matthew Dillon <dillon@backplane.com> 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?199901280211.SAA89748>