Date: Wed, 27 Jan 1999 18:04:45 -0800 (PST) From: Archie Cobbs <archie@whistle.com> To: dillon@apollo.backplane.com (Matthew Dillon) Cc: current@FreeBSD.ORG Subject: Re: kern/subr_scanf array index of signed char Message-ID: <199901280204.SAA19979@bubba.whistle.com> In-Reply-To: <199901272135.NAA57832@apollo.backplane.com> from Matthew Dillon at "Jan 27, 99 01:35:08 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901280204.SAA19979>