[e-lang] E 0.9.3 release?
erights at gmail.com
Sun Jan 2 16:11:35 PST 2011
All the other occurrences are essentially equivalent and seemingly as
On Sun, Jan 2, 2011 at 4:07 PM, Mark Miller <erights at gmail.com> wrote:
> On Sun, Jan 2, 2011 at 11:36 AM, Bill Frantz <frantz at pwpconsult.com>wrote:
>> On 1/1/11 at 10:12 PM, erights at gmail.com (Mark Miller) wrote:
>> >* New warning: "warning: array subscript has type `char'"
>> >for C code in byacc/j that seems innocent to me. And in any case is old
>> >third party code.
>> Since C supports signed chars (an abomination on the world), a C
>> compiler which actually defaults to signed could cause array
>> underflow problems. YMMV. VWP. Caveat emptor.
>> I would change their declarations to include "unsigned".
> If I saw something that looked like indexing, I would understand. However,
> the warning complains, for example, about the last line of the following
> program fragment. This only happens to me using cygwin gcc on Windows.
> Compiling the same code on my Mac using regular gcc emits no warning.
> void print_pos(char *st_line,char *st_cptr)
> char *s;
> if (st_line == 0) return;
> for (s = st_line; *s != '\n'; ++s)
> if (isprint(*s) || *s == '\t')
Text by me above is hereby placed in the public domain
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the e-lang