: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
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. -Matt :___________________________________________________________________________ :Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com : :To Unsubscribe: send mail to majord...@freebsd.org :with "unsubscribe freebsd-current" in the body of the message : Matthew Dillon <dil...@backplane.com> To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message