• Tim Peters's avatar
    SF bug 705836: struct.pack of floats in non-native endian order · d50ade68
    Tim Peters yazdı
    pack_float, pack_double, save_float:  All the routines for creating
    IEEE-format packed representations of floats and doubles simply ignored
    that rounding can (in rare cases) propagate out of a long string of
    1 bits.  At worst, the end-off carry can (by mistake) interfere with
    the exponent value, and then unpacking yields a result wrong by a factor
    of 2.  In less severe cases, it can end up losing more low-order bits
    than intended, or fail to catch overflow *caused* by rounding.
    
    Bugfix candidate, but I already backported this to 2.2.
    
    In 2.3, this code remains in severe need of refactoring.
    d50ade68
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...
README 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...