[comp.lang.perl] itty-bitty signed char bug

rkrebs@archie.dsd.es.com (Randall Krebs) (02/15/91)

There is at least one place (I didn't look for others) where the
source code for perl expects the type "char" to be a signed quantity.
(Actually, it just expects the result of an addition of a char and 
an int to be signed.  Check out doarg.c line 189 patchlevel 3.044)
Some compilers (RISC C Compiler v2.11) treat it as unsigned.

I was seeing some pretty bizarre regular expression replacement
behavior.  I got around it by giving "-signed" to the MIPS cc
command.

randall.
-- 
   Randall S. Krebs                        | "There were a few PERL scripts 
   (rkrebs@dsd.es.com)                     |  EMAILed and well they serve the
   Evans & Sutherland Computer Corporation |  purpose in its completely."
   Salt Lake City, Utah (Where?)           |          - Rohit Mehrotra