[gs-cvs] rev 7225 - trunk/gs/src
ray at ghostscript.com
ray at ghostscript.com
Fri Nov 24 13:53:27 PST 2006
Author: ray
Date: 2006-11-24 13:53:27 -0800 (Fri, 24 Nov 2006)
New Revision: 7225
Modified:
trunk/gs/src/zarith.c
Log:
Return 'undefinedresult' rather than 'rangecheck' for MININT / -1 to match
Adobe CPSI and Tek on CET 25-09
Modified: trunk/gs/src/zarith.c
===================================================================
--- trunk/gs/src/zarith.c 2006-11-24 21:18:42 UTC (rev 7224)
+++ trunk/gs/src/zarith.c 2006-11-24 21:53:27 UTC (rev 7225)
@@ -239,11 +239,9 @@
check_type(*op, t_integer);
check_type(op[-1], t_integer);
- if (op->value.intval == 0)
- return_error(e_undefinedresult);
- if (op[-1].value.intval == MIN_INTVAL && op->value.intval == -1) {
+ if ((op->value.intval == 0) || (op[-1].value.intval == MIN_INTVAL && op->value.intval == -1)) {
/* Anomalous boundary case: -MININT / -1, fail. */
- return_error(e_rangecheck);
+ return_error(e_undefinedresult);
}
op[-1].value.intval /= op->value.intval;
pop(1);
More information about the gs-cvs
mailing list