mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -724,10 +724,14 @@ Tkapp_ExprDouble (self, args)
|
|||
{
|
||||
char *s;
|
||||
double v;
|
||||
int retval;
|
||||
|
||||
if (!PyArg_Parse(args, "s", &s))
|
||||
return NULL;
|
||||
if (Tcl_ExprDouble(Tkapp_Interp(self), s, &v) == TCL_ERROR)
|
||||
PyFPE_START_PROTECT("Tkapp_ExprDouble", return 0)
|
||||
retval = Tcl_ExprDouble (Tkapp_Interp (self), s, &v);
|
||||
PyFPE_END_PROTECT
|
||||
if (retval == TCL_ERROR)
|
||||
return Tkinter_Error(self);
|
||||
return Py_BuildValue("d", v);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue