Quoting Paul Eggert ([EMAIL PROTECTED]):

> When building wget 1.6 on Solaris 2.5.1 with GCC 2.95.3, I ran
> into the following porting problem.
> 
> snprintf.c: In function `dopr':
> snprintf.c:230: warning: subscript has type `char'
> snprintf.c:254: warning: subscript has type `char'
> 
> This is warning that isdigit doesn't work on negative characters
> (which are possible on hosts where characters are signed).
> Here is a patch.

Wouldn't just an explicit type cast to `(unsigned char)ch' suffice?

-- jan

--------------------+------------------------------------------------------
 Jan Prikryl        | vr|vis center for virtual reality and visualisation
 <[EMAIL PROTECTED]> | http://www.vrvis.at
--------------------+------------------------------------------------------

Reply via email to