Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!ucsd!ucselx!brian From: brian@ucselx.sdsu.edu (Brian Ho) Newsgroups: comp.graphics Subject: A bug in PBM software (.pcx => pbm) Message-ID: <1990Aug7.200352.1484@ucselx.sdsu.edu> Date: 7 Aug 90 20:03:52 GMT Organization: San Diego State University Computing Services Lines: 32 I have find a bug (may not appear in other system) in the PBM software. The bug is in the program which converts a .PCX (paint brush image format) to a Pbm portable bitmap. The bug (very small) appear at line 102 in program "pcxtopbm.c" which is under /pbmplus/pbm/. The orignal code read : if (b & 0xC0 == 0xC0) .. .. However, some system (e.g. Sun 3/50) does not like this. It miss interpret it as if (b & (OxCO == 0xC0) .. .. Therefore, I have simply put a parentesis around the '&' clause if ((b & OxC0) == 0xC0) .. .. and it works Great!!!!!!! I don't if it (the bug) appears in other system.. keep me posted... my E-mail address is brian@yucatec.sdsu.edu eden@cs.sdsu.edu