Jean Brouwers <[EMAIL PROTECTED]> added the comment: I have not yet been able to duplicate the problem in a smaller test case, but I did stumble into a fix. Changing the following statement in the cmath_log function from
if (PyTuple_GET_SIZE(args) == 2) x = c_quot(x, c_log(y)); to if (PyTuple_GET_SIZE(args) == 2) { y = c_log(y); x = c_quot(x, y); } fixes the problem for the 64-bit -xO5 Python build. The result is no the same in all 32- and 64-bit builds with -xO0 and -xO5 on Solaris 10 (Opteron) with SUN C. >>> cmath.log(100, 2) (6.6438561897747253+0j) >>> cmath.log(0.01, 0.5) (6.6438561897747244-0j) _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3168> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com