This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MrJean1
Recipients MrJean1, mark.dickinson
Date 2008-06-23.16:25:14
SpamBayes Score 0.011843794
Marked as misclassified No
Message-id <1214238316.3.0.968011421001.issue3167@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2008-06-23 16:25:16MrJean1setspambayes_score: 0.0118438 -> 0.011843794
recipients: + MrJean1, mark.dickinson
2008-06-23 16:25:16MrJean1setspambayes_score: 0.0118438 -> 0.0118438
messageid: <1214238316.3.0.968011421001.issue3167@psf.upfronthosting.co.za>
2008-06-23 16:25:15MrJean1linkissue3167 messages
2008-06-23 16:25:14MrJean1create