summaryrefslogtreecommitdiff
path: root/gs
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>1999-03-16 15:10:39 +0000
committerRay Johnston <ray.johnston@artifex.com>1999-03-16 15:10:39 +0000
commitb4932af83ec2afa5b4ed8ca1c12fbd2954cdac4d (patch)
tree42017efcbb7185b4a299ff86a979c46b7d08d82c /gs
parent865d215420f1292e38d33998f4d6b4b3f0528792 (diff)
Fix HANDLE_RECT_UNLESS to prevent a >0 return code from terminating the
loop. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@774 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'gs')
-rw-r--r--gs/src/gxcldev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gs/src/gxcldev.h b/gs/src/gxcldev.h
index 9f99da202..a6edfd399 100644
--- a/gs/src/gxcldev.h
+++ b/gs/src/gxcldev.h
@@ -314,7 +314,7 @@ struct gx_clist_state_s {
* waits until the next page has finished rendering. The recovery logic
* keeps calling clist_VMerror_recover() until enough memory is freed,
* or until clist_VMerror_recover() signals that no more pages
- * remain to be rendered.
+ * remain to be rendered (when return code < 0).
*
* 2) If enough memory is not free, the recovery logic calls
* clist_VMerror_recover_flush() once. This routine terminates and
@@ -596,7 +596,7 @@ retry_rect:\
do
#define HANDLE_RECT_UNLESS(codevar, unless_clause)\
while (codevar < 0 &&\
- !(codevar = clist_VMerror_recover(cdev, (codevar)))\
+ ((codevar = clist_VMerror_recover(cdev, (codevar))) >= 0)\
);\
if (codevar < 0 && !(unless_clause))\
ERROR_RECT(codevar);\