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

leonardo at ghostscript.com leonardo at ghostscript.com
Mon Jan 22 06:34:05 PST 2007


Author: leonardo
Date: 2007-01-22 06:34:04 -0800 (Mon, 22 Jan 2007)
New Revision: 7634

Modified:
   trunk/gs/src/zupath.c
Log:
Fix : MSVC8 build of revision 7630 crashes in zupath.

DETAILS :

Herre are rules from "INTERNATIONAL STANDARD cISO/IEC ISO/IEC 9899:1999 
(E) Programming languages - C" :

unary-expression: unary-operator cast-expression
cast-expression: unary-expression
unary-expression: postfix-expression
postfix-expression: postfix-expression ++

Thus *pnargs++ analyzes as *(pnargs++) .

EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/src/zupath.c
===================================================================
--- trunk/gs/src/zupath.c	2007-01-22 10:29:52 UTC (rev 7633)
+++ trunk/gs/src/zupath.c	2007-01-22 14:34:04 UTC (rev 7634)
@@ -638,7 +638,7 @@
 
 		    while (opargs--) {
 			push(1);
-			*pnargs++; /* in case of error */
+			(*pnargs)++; /* in case of error */
 			code = num_array_get(imemory, &operands, format, i++, op);
 			switch (code) {
 			    case t_integer:



More information about the gs-cvs mailing list