• Tim Peters's avatar
    SF bug 525705: [2.2] underflow raise OverflowException. · dc5a5087
    Tim Peters yazdı
    Another year in the quest to out-guess random C behavior.
    
    Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y).  The latter
    is useful for functions with complex results.  Two corrections to errno-
    after-libm-call are attempted:
    
    1. If the platform set errno to ERANGE due to underflow, clear errno.
       Some unknown subset of libm versions and link options do this.  It's
       allowed by C89, but I never figured anyone would do it.
    
    2. If the platform did not set errno but overflow occurred, force
       errno to ERANGE.  C89 required setting errno to ERANGE, but C99
       doesn't.  Some unknown subset of libm versions and link options do
       it the C99 way now.
    
    Bugfix candidate, but hold off until some Linux people actually try it,
    with and without -lieee.  I'll send a help plea to Python-Dev.
    dc5a5087
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...