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

lpd at ghostscript.com lpd at ghostscript.com
Fri Aug 4 15:48:54 PDT 2006


Author: lpd
Date: 2006-08-04 15:48:53 -0700 (Fri, 04 Aug 2006)
New Revision: 6967

Modified:
   trunk/gs/src/interp.c
Log:
Adds braces around the body of the new return_with_error_tx_op macro, to
avoid an ambiguous 'else'.


Modified: trunk/gs/src/interp.c
===================================================================
--- trunk/gs/src/interp.c	2006-08-04 21:43:08 UTC (rev 6966)
+++ trunk/gs/src/interp.c	2006-08-04 22:48:53 UTC (rev 6967)
@@ -798,10 +798,11 @@
  * occurs, so as not to slow down the non-error case.
  */
 #define return_with_error_tx_op(err_code)\
-  if (r_has_type(IREF, t_name)) {\
-      return_with_error(err_code, pvalue);\
-  } else {\
-      return_with_error_iref(err_code);\
+  { if (r_has_type(IREF, t_name)) {\
+        return_with_error(err_code, pvalue);\
+    } else {\
+        return_with_error_iref(err_code);\
+    }\
   }
 
     int ticks_left = gs_interp_time_slice_ticks;



More information about the gs-cvs mailing list