[gs-cvs] rev 8096 - trunk/gs/src

alexcher at ghostscript.com alexcher at ghostscript.com
Tue Jul 3 05:00:19 PDT 2007


Author: alexcher
Date: 2007-07-03 05:00:18 -0700 (Tue, 03 Jul 2007)
New Revision: 8096

Modified:
   trunk/gs/src/gdevps.c
   trunk/gs/src/scfd.c
Log:
Fix a harmless typo, replace bitwise '&' with logical '&&' in a couple of
logical expressions. Bug 689315, attachment 3115.

DIFFERENCES:
None


Modified: trunk/gs/src/gdevps.c
===================================================================
--- trunk/gs/src/gdevps.c	2007-07-02 08:09:03 UTC (rev 8095)
+++ trunk/gs/src/gdevps.c	2007-07-03 12:00:18 UTC (rev 8096)
@@ -1162,7 +1162,7 @@
     gs_rect bbox;
 
     gx_device_bbox_bbox(vdev->bbox_device, &bbox);
-    if (pdev->first_page & !vdev->in_page) {
+    if (pdev->first_page && !vdev->in_page) {
 	/* Nothing has been written.  Write the file header now. */
 	code = psw_begin_file(pdev, &bbox);
         if (code < 0)

Modified: trunk/gs/src/scfd.c
===================================================================
--- trunk/gs/src/scfd.c	2007-07-02 08:09:03 UTC (rev 8095)
+++ trunk/gs/src/scfd.c	2007-07-03 12:00:18 UTC (rev 8096)
@@ -300,7 +300,7 @@
 	 * in the string of initial zeros in the EOL.  If EndOfLine
 	 * is false, we aren't sure what we should do....
 	 */
-	if (ss->EncodedByteAlign & !ss->EndOfLine)
+	if (ss->EncodedByteAlign && !ss->EndOfLine)
 	    ss->bits_left &= ~7;
     }
     /* If we're between scan lines, scan for EOLs. */



More information about the gs-cvs mailing list