diff options
author | Guido van Rossum <guido@python.org> | 1997-03-14 04:32:50 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-03-14 04:32:50 (GMT) |
commit | 45b83915f8d5974045d374c981531d9b98570df1 (patch) | |
tree | f7212bc9be87ae8c5464633e0701cbf9a2f15b15 /Objects/complexobject.c | |
parent | 1aeb1047baa41af14e720f74f30d288417f1122e (diff) | |
download | cpython-45b83915f8d5974045d374c981531d9b98570df1.zip cpython-45b83915f8d5974045d374c981531d9b98570df1.tar.gz cpython-45b83915f8d5974045d374c981531d9b98570df1.tar.bz2 |
New form of PyFPE_END_PROTECT macro.
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r-- | Objects/complexobject.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 212fd34..b141f2f 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -367,7 +367,7 @@ complex_add(v, w) Py_complex result; PyFPE_START_PROTECT("complex_add", return 0) result = c_sum(v->cval,w->cval); - PyFPE_END_PROTECT + PyFPE_END_PROTECT(result) return newcomplexobject(result); } @@ -379,7 +379,7 @@ complex_sub(v, w) Py_complex result; PyFPE_START_PROTECT("complex_sub", return 0) result = c_diff(v->cval,w->cval); - PyFPE_END_PROTECT + PyFPE_END_PROTECT(result) return newcomplexobject(result); } @@ -391,7 +391,7 @@ complex_mul(v, w) Py_complex result; PyFPE_START_PROTECT("complex_mul", return 0) result = c_prod(v->cval,w->cval); - PyFPE_END_PROTECT + PyFPE_END_PROTECT(result) return newcomplexobject(result); } @@ -404,7 +404,7 @@ complex_div(v, w) PyFPE_START_PROTECT("complex_div", return 0) c_error = 0; quot = c_quot(v->cval,w->cval); - PyFPE_END_PROTECT + PyFPE_END_PROTECT(quot) if (c_error == 1) { err_setstr(ZeroDivisionError, "complex division"); return NULL; @@ -480,7 +480,7 @@ complex_pow(v, w, z) else p = c_pow(v->cval,exponent); - PyFPE_END_PROTECT + PyFPE_END_PROTECT(p) if (c_error == 2) { err_setstr(ValueError, "0.0 to a negative or complex power"); return NULL; @@ -514,7 +514,7 @@ complex_abs(v) double result; PyFPE_START_PROTECT("complex_abs", return 0) result = hypot(v->cval.real,v->cval.imag); - PyFPE_END_PROTECT + PyFPE_END_PROTECT(result) return newfloatobject(result); } |