From 11a5071ed60511741a03dd375f42c5294bda3e45 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 14 Jan 1999 19:11:11 +0000 Subject: [PATCH] Jim Ahlstrom patch: Watcom chokes on a long expression in c_asinh(). Break it up. --- Modules/cmathmodule.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 [] = -- 2.50.1