diff options
author | Guido van Rossum <guido@python.org> | 1997-02-14 22:59:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-02-14 22:59:58 (GMT) |
commit | 52fa3a69090ac098b01b28f397d9bd08f957e8cd (patch) | |
tree | c01e3347c776bd8f5deb93af7e90cfca37dea8eb /Modules/imgfile.c | |
parent | 0ae748d3c409fc4b870baadd601a53c6a43ddf11 (diff) | |
download | cpython-52fa3a69090ac098b01b28f397d9bd08f957e8cd.zip cpython-52fa3a69090ac098b01b28f397d9bd08f957e8cd.tar.gz cpython-52fa3a69090ac098b01b28f397d9bd08f957e8cd.tar.bz2 |
Changes for Lee Busby's SIGFPE patch set.
Two new modules fpectl and fpetest.
Surround various and sundry f.p. operations with PyFPE_*_PROTECT macros.
Diffstat (limited to 'Modules/imgfile.c')
-rw-r--r-- | Modules/imgfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/imgfile.c b/Modules/imgfile.c index 33266b9..779169d 100644 --- a/Modules/imgfile.c +++ b/Modules/imgfile.c @@ -387,8 +387,10 @@ PyObject *args; iclose(image); return NULL; } + PyFPE_START_PROTECT("readscaled", return 0) xfac = (float)xsize/(float)xwtd; yfac = (float)ysize/(float)ywtd; + PyFPE_END_PROTECT cdatap = PyString_AsString(rv); idatap = (long *)cdatap; |