Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!orca!archie!rkrebs From: rkrebs@archie.dsd.es.com (Randall Krebs) Newsgroups: comp.lang.perl Subject: itty-bitty signed char bug Message-ID: <1991Feb14.192238.2853@dsd.es.com> Date: 14 Feb 91 19:22:38 GMT Sender: usenet@dsd.es.com Reply-To: rkrebs@archie.dsd.es.com (Randall Krebs) Organization: Evans & Sutherland Computer Corp., Salt Lake City, UT Lines: 16 Nntp-Posting-Host: 130.187.92.28 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