summaryrefslogtreecommitdiffstats
path: root/Modules/cmathmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-14 19:11:11 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-14 19:11:11 (GMT)
commit11a5071ed60511741a03dd375f42c5294bda3e45 (patch)
treeef8a2d9f4e5d3045baa850c4f165578afe32d3d4 /Modules/cmathmodule.c
parenta71b5f4e1d39cda3d78a20a1c41056d362c56630 (diff)
downloadcpython-11a5071ed60511741a03dd375f42c5294bda3e45.zip
cpython-11a5071ed60511741a03dd375f42c5294bda3e45.tar.gz
cpython-11a5071ed60511741a03dd375f42c5294bda3e45.tar.bz2
Jim Ahlstrom patch: Watcom chokes on a long expression in c_asinh().
Break it up.
Diffstat (limited to 'Modules/cmathmodule.c')
-rw-r--r--Modules/cmathmodule.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c
index 45dad11..060cc6f 100644
--- a/Modules/cmathmodule.c
+++ b/Modules/cmathmodule.c
@@ -83,7 +83,11 @@ Return the arc sine of x.";
static Py_complex c_asinh(x)
Py_complex x;
{
- return c_neg(c_log(c_diff(c_sqrt(c_sum(c_1,c_prod(x,x))),x)));
+ /* Break up long expression for WATCOM */
+ Py_complex z;
+ z = c_sum(c_1,c_prod(x,x));
+ z = c_diff(c_sqrt(z),x);
+ return c_neg(c_log(z));
}
static char c_asinh_doc [] =