summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-02-14 22:59:58 (GMT)
committerGuido van Rossum <guido@python.org>1997-02-14 22:59:58 (GMT)
commit52fa3a69090ac098b01b28f397d9bd08f957e8cd (patch)
treec01e3347c776bd8f5deb93af7e90cfca37dea8eb /Modules/_tkinter.c
parent0ae748d3c409fc4b870baadd601a53c6a43ddf11 (diff)
downloadcpython-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/_tkinter.c')
-rw-r--r--Modules/_tkinter.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index ba95310..33d5392 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -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);
}