isprint() fix

Peter Naulls peter at chocky.org
Sat Mar 30 10:53:10 PST 2002


Subtle, this one:

This fixes bug #30

Index: unixlib/source/clib/ctype.h
===================================================================
RCS file: /usr/local/cvsroot/gccsdk/unixlib/source/clib/ctype.h,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 ctype.h
--- unixlib/source/clib/ctype.h 2001/09/14 14:01:17     1.2.2.1
+++ unixlib/source/clib/ctype.h 2002/03/30 18:51:33
@@ -64,7 +64,7 @@
 
 /* c is a printable character.  */
 extern int isprint (int __c);
-#define isprint(c) (__ctype[(int) (c)] & ~___ctype_ctrl)
+#define isprint(c) (~__ctype[(int) (c)] & ___ctype_ctrl)
 
 /* c is a printable character other than a space or a
    alphanumeric character.  */


-- 
------------------------------------------------------------------------
 Peter Naulls - peter at chocky.org
 Homepage                     -  http://www.chocky.org/
 RISC OS Projects Initiative  -  http://initiative.chocky.org/
 RISC OS C Programming        -  http://www.riscos.info/
------------------------------------------------------------------------



More information about the gcc mailing list