From owner-freebsd-current Wed Jan 27 18:05:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA18029 for freebsd-current-outgoing; Wed, 27 Jan 1999 18:05:27 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA18024 for ; Wed, 27 Jan 1999 18:05:26 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id SAA25444; Wed, 27 Jan 1999 18:04:52 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma025440; Wed, 27 Jan 99 18:04:45 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id SAA19979; Wed, 27 Jan 1999 18:04:45 -0800 (PST) From: Archie Cobbs Message-Id: <199901280204.SAA19979@bubba.whistle.com> Subject: Re: kern/subr_scanf array index of signed char In-Reply-To: <199901272135.NAA57832@apollo.backplane.com> from Matthew Dillon at "Jan 27, 99 01:35:08 pm" To: dillon@apollo.backplane.com (Matthew Dillon) Date: Wed, 27 Jan 1999 18:04:45 -0800 (PST) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Dillon writes: > goto match_failure; > } else { > p0 = p = va_arg(ap, char *); > - while (ccltab[*inp]) { > + while (ccltab[(int)(unsigned char)*inp]) { > inr--; > *p++ = *inp++; > if (--width == 0) Just curious.. why do you need the "(int)" cast? -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message