summaryrefslogtreecommitdiff
path: root/Modules/cmathmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-14 19:11:11 +0000
committerGuido van Rossum <guido@python.org>1999-01-14 19:11:11 +0000
commit1b0e4cd05edece36143c3c485bd275ffa1efd2ae (patch)
treeca53fb121273a1519b4b03617a1cbf8657998eef /Modules/cmathmodule.c
parenta6ea869440abb70d0161f9cd90f7281feb3f15f5 (diff)
downloadcpython-1b0e4cd05edece36143c3c485bd275ffa1efd2ae.tar.gz
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 45dad11e06..060cc6f9ba 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 [] =