Re: Problem with zlib

From: Mike Stilson (stilson@earthlink.net)
Date: 12/05/99


On Sun, 5 Dec 1999, George Greer wrote:

> On Sun, 5 Dec 1999, Michael Stilson wrote:
>
> >I didn't see anything like this in a quick scan thru the old stuff, but
> >here's my problems:
> >
> >1: In the compile, at the lines
> >    while(*ptr < 0)
> >       *ptr++ = '\0';
> >always gives "Comparison is always 0 due to limited range of data type"
>
> Your 'char' isn't signed for some reason.
>
> >ie: they get to the "Name:" prompt, type "George" and it always says
> >"Did I get that right, UGeorge".
> >
> >I don't want to just write something to strip the 'U' and call it done if
> >there's another problem and that's just fixing a symptom.
>
> That could be because of the TELOPT 83, but I never saw the 'U' when I
> tested it.  I should have, but didn't.  If you find it, be more intelligent
> about the IAC handling.


Ok, I must've been looking at this too long not to notice that.

They happened to be related.. just cast the *ptr as signed char and the
"U" problem went away, too.

Had the feeling they were related.

Thanks.

Mike


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST