mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
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.
This commit is contained in:
parent
0ae748d3c4
commit
52fa3a6909
8 changed files with 492 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue