diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-03-20 18:31:20 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-03-20 18:31:20 (GMT) |
commit | 58d23ae9a919520ee5b849a4c6c48fa833c9958d (patch) | |
tree | 29ac77b4cf8253ac431bc9e4e7413f76253cdbb5 /Python/pythonrun.c | |
parent | 38d0ccfe963a1fa1cbc0a85298675d60d60437e2 (diff) | |
download | cpython-58d23ae9a919520ee5b849a4c6c48fa833c9958d.zip cpython-58d23ae9a919520ee5b849a4c6c48fa833c9958d.tar.gz cpython-58d23ae9a919520ee5b849a4c6c48fa833c9958d.tar.bz2 |
SF bug 705836: struct.pack of floats in non-native endian order
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.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions