> :Just curious.. why do you need the "(int)" cast?
>
> 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.
When you add casts to quite warnings, please use the minium number of
the
Matthew Dillon writes:
> :>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.
> :
> :Sloppy
:>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.
:
:Sloppy thinking. How would you know if y
>:Matthew Dillon writes:
>:> goto match_failure;
>:> } else {
>:> p0 = p = va_arg(ap, char *);
>:> - while (ccltab[*inp]) {
>:> + while (ccltab
On Wed, 27 Jan 1999, Archie Cobbs wrote:
> Alfred Perlstein writes:
> > avoids a warning.
>
> No it doesn't. The "(unsigned char)" avoids the warning:
>
> $ cat > foo.c
> int foo(int *array, unsigned char index) { return array[index]; }
> $ gcc -c -Wall -o foo foo.c
> $
doh' yes, it i
Alfred Perlstein writes:
> > Matthew Dillon writes:
> > > - while (ccltab[*inp]) {
> > > + while (ccltab[(int)(unsigned char)*inp]) {
> >
> > Just curious.. why do you need the "(int)" cast?
>
> avoids a warning.
No it doesn't. The "(un
::> - 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
:in
On Wed, 27 Jan 1999, Archie Cobbs wrote:
> Matthew Dillon writes:
> > - while (ccltab[*inp]) {
> > + while (ccltab[(int)(unsigned char)*inp]) {
>
> Just curious.. why do you need the "(int)" cast?
avoids a warning.
-Alfred
To Unsubsc
:Matthew Dillon writes:
:> goto match_failure;
:> } else {
:> p0 = p = va_arg(ap, char *);
:> - while (ccltab[*inp]) {
:> + while (ccltab[(int
Matthew Dillon writes:
> goto match_failure;
> } else {
> p0 = p = va_arg(ap, char *);
> - while (ccltab[*inp]) {
> + while (ccltab[(int)(unsig
BZZZzzztt! Houston, we have a problem!
Fixed.
-Matt
Matthew Dillon
@@ -323,7 +323,7 @@
/* take only those things in the cl
11 matches
Mail list logo