On Tue, Mar 03, 2009 at 05:45:34PM +0000, Christos Zoulas wrote: > - if (ep == s || r == HUGE_VAL || errno == ERANGE) > + if (ep == s || memcmp(&r, &hv, sizeof(hv)) == 0 || errno == ERANGE) Uhm, aren't there "don't care" bits in infinity, so we can't rely on memcmp here? Martin