[issue3167] math test fails on Solaris 10

Jean Brouwers report at bugs.python.org
Mon Jun 23 18:25:16 CEST 2008


Jean Brouwers <MrJean1 at Gmail.com> added the comment:

Here is a simple test case, demonstrating the issue.

#include <errno.h>
#include <math.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    printf("%f %d\n", log(-HUGE_VAL), errno);
    printf("%f %d\n", log( HUGE_VAL), errno);
}

result is different for 32- and 64-bit

> cc -xtarget=native log_inf.c -lm ; a.out  
-Inf 33
Inf 33

> cc -xtarget=native64 log_inf.c -lm ; a.out
-NaN 0
Inf 0

#define EDOM 33 in /usr/include/sys/errno.h

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3167>
_______________________________________


More information about the Python-bugs-list mailing list