Message 68699 - Python tracker (original) (raw)

On Mon, Jun 23, 2008 at 5:25 PM, Jean Brouwers <report@bugs.python.org> wrote:

result is different for 32- and 64-bit

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

That 33 for the second log call may just be the propagated errno value from the first call. Could you try setting errno = 0 before each of the printf calls? I'd expect that log(HUGE_VAL) doesn't set errno at all.

Mark