Doug McNaught <doug(at)wireboard(dot)com> writes:
> Hmmm, according to my knowledge of C, 'c' should be an int here, as
> EOF is guaranteed not to collide with any legal char value.
I agree with Doug: EOF is not supposed to be equal to any value of
'char', therefore changing the variables to signed char will merely
break something else. Probably the variables should be int; are their
values coming from getc() or some such? Will look at it.
regards, tom lane