From owner-freebsd-current Wed Jan 27 18:11:34 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA18918 for freebsd-current-outgoing; Wed, 27 Jan 1999 18:11:34 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA18912 for ; Wed, 27 Jan 1999 18:11:32 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.2/8.9.1) id SAA89748; Wed, 27 Jan 1999 18:11:31 -0800 (PST) (envelope-from dillon) Date: Wed, 27 Jan 1999 18:11:31 -0800 (PST) From: Matthew Dillon Message-Id: <199901280211.SAA89748@apollo.backplane.com> To: Matthew Dillon Cc: Archie Cobbs , current@FreeBSD.ORG Subject: Re: kern/subr_scanf array index of signed char References: <199901280204.SAA19979@bubba.whistle.com> <199901280207.SAA88572@apollo.backplane.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ::> - 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message