Re: Question about -Wchar-subscripts

2000-10-03 Thread Thomas David Rivers
Robert Nordier <[EMAIL PROTECTED]> wrote: > > Thomas David Rivers wrote: > > > > > So why is using a "char" as an array subscript wrong? I had always > > > > avoided it because the compiler complained and that was good enough > > > > for me. > > > > > > Because your char value could be negativ

Re: Question about -Wchar-subscripts

2000-10-03 Thread Leif Neland
- Original Message - From: "Dan Nelson" <[EMAIL PROTECTED]> To: "Larry Lile" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 03, 2000 9:49 PM Subject: Re: Question about -Wchar-subscripts > In the last episode (Oct 03), Larr

Re: Question about -Wchar-subscripts

2000-10-03 Thread Robert Nordier
Thomas David Rivers wrote: > > > So why is using a "char" as an array subscript wrong? I had always > > > avoided it because the compiler complained and that was good enough > > > for me. > > > > Because your char value could be negative and end up referencing memory > > before your array start

Re: Question about -Wchar-subscripts

2000-10-03 Thread Thomas David Rivers
> > In the last episode (Oct 03), Larry Lile said: > > > > ...we get scores of warnings about using characters as subscripts > > to an array (-Wchar-subscripts), which generates so much noise as > > to mask real warnings burried within. Therefore, I would like to > > suppress thi

Re: Question about -Wchar-subscripts

2000-10-03 Thread Dan Nelson
In the last episode (Oct 03), Larry Lile said: > > ...we get scores of warnings about using characters as subscripts > to an array (-Wchar-subscripts), which generates so much noise as > to mask real warnings burried within. Therefore, I would like to > suppress this warning unles

Question about -Wchar-subscripts

2000-10-03 Thread Larry Lile
I was just asked a question that I really don't know what the "correct" answer is, so here it is. ...we get scores of warnings about using characters as subscripts to an array (-Wchar-subscripts), which generates so much noise as to mask real warnings burried within. Therefore, I