diff options
author | hobbs <hobbs> | 2003-04-18 20:06:03 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2003-04-18 20:06:03 (GMT) |
commit | 8eeb1a27131c17ff236b9dd6ab105fdcafe79b51 (patch) | |
tree | 3c184128709dd9948496c3008498cb3f4b427dd1 | |
parent | 5de1615fe3e5d15f128ac5fcceb281e568b119cf (diff) | |
download | tcl-8eeb1a27131c17ff236b9dd6ab105fdcafe79b51.zip tcl-8eeb1a27131c17ff236b9dd6ab105fdcafe79b51.tar.gz tcl-8eeb1a27131c17ff236b9dd6ab105fdcafe79b51.tar.bz2 |
* generic/tclExecute.c (ExprCallMathFunc): remove incorrect
extraneous cast from Tcl_WideAsDouble.
-rw-r--r-- | ChangeLog | 31 | ||||
-rw-r--r-- | generic/tclExecute.c | 4 |
2 files changed, 20 insertions, 15 deletions
@@ -1,3 +1,8 @@ +2003-04-18 Jeff Hobbs <jeffh@ActiveState.com> + + * generic/tclExecute.c (ExprCallMathFunc): remove incorrect + extraneous cast from Tcl_WideAsDouble. + 2003-04-18 Donal K. Fellows <fellowsd@cs.man.ac.uk> * doc/open.n: Moved serial port options from [fconfigure] @@ -213,19 +218,19 @@ 2003-03-20 Don Porter <dgp@users.sourceforge.net> - * generic/tclInt.h (tclOriginalNotifier): - * generic/tclStubInit.c (tclOriginalNotifier): - * mac/tclMacNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): - * unix/tclUnixNotfy.c (Tcl_SetTimer,Tcl_WaitForEvent, - Tcl_CreateFileHandler,Tcl_DeleteFileHandler): - * win/tclWinNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): Some linkers - apparently use a different representation for a pointer to a function - within the same compilation unit and a pointer to a function in a - different compilation unit. This causes checks like those in the - original notifier procedures to fall into infinite loops. The fix - is to store pointers to the original notifier procedures in a struct - defined in the same compilation unit as the stubs tables, and compare - against those values. [Bug 707174] + * generic/tclInt.h (tclOriginalNotifier): + * generic/tclStubInit.c (tclOriginalNotifier): + * mac/tclMacNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): + * unix/tclUnixNotfy.c (Tcl_SetTimer,Tcl_WaitForEvent, + Tcl_CreateFileHandler,Tcl_DeleteFileHandler): + * win/tclWinNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): Some linkers + apparently use a different representation for a pointer to a function + within the same compilation unit and a pointer to a function in a + different compilation unit. This causes checks like those in the + original notifier procedures to fall into infinite loops. The fix + is to store pointers to the original notifier procedures in a struct + defined in the same compilation unit as the stubs tables, and compare + against those values. [Bug 707174] * generic/tclInt.h: Removed definition of ParseValue struct that is no longer used. diff --git a/generic/tclExecute.c b/generic/tclExecute.c index e0dd860..272d939 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclExecute.c,v 1.94.2.1 2003/04/16 23:31:43 dgp Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.94.2.2 2003/04/18 20:06:05 hobbs Exp $ */ #include "tclInt.h" @@ -5498,7 +5498,7 @@ ExprCallMathFunc(interp, eePtr, objc, objv) TclGetWide(w,valuePtr); if (mathFuncPtr->argTypes[k] == TCL_DOUBLE) { args[k].type = TCL_DOUBLE; - args[k].doubleValue = (Tcl_WideInt) Tcl_WideAsDouble(w); + args[k].doubleValue = Tcl_WideAsDouble(w); } else if (mathFuncPtr->argTypes[k] == TCL_INT) { args[k].type = TCL_INT; args[k].intValue = Tcl_WideAsLong(w); |