summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'psi/zmath.c')
-rw-r--r--psi/zmath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/psi/zmath.c b/psi/zmath.c
index d6ecae23..518424f2 100644
--- a/psi/zmath.c
+++ b/psi/zmath.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2019 Artifex Software, Inc.
+/* Copyright (C) 2001-2020 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -157,11 +157,11 @@ zexp(i_ctx_t *i_ctx_p)
result = 1.0; /* match Adobe; can't rely on C library */
else
result = pow(args[0], args[1]);
- make_real(op - 1, result);
#ifdef HAVE_ISINF
if (isinf((op - 1)->value.realval))
return_error(gs_error_undefinedresult);
#endif
+ make_real(op - 1, result);
pop(1);
return 0;
}