summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2004-05-27 20:08:18 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2004-05-27 20:08:18 (GMT)
commit1586f3fc7d08ac5d3c07069a621630fdfad84cb2 (patch)
treee14b375e914e943789cdc0f02881aea9ae646e1e /generic/tclExecute.c
parentf0159bec481b8b56d7b70ae333acc455e5d6c3d3 (diff)
downloadtcl-1586f3fc7d08ac5d3c07069a621630fdfad84cb2.zip
tcl-1586f3fc7d08ac5d3c07069a621630fdfad84cb2.tar.gz
tcl-1586f3fc7d08ac5d3c07069a621630fdfad84cb2.tar.bz2
* generic/tclExecute.c:
* generic/tclVar.c: using (ptrdiff_t) instead of (int) casting to correct compiler warnings [Bug 961657], reported by Bob Techentin.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index bff18c9..6b88e55 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -11,9 +11,10 @@
* 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.140 2004/05/25 00:07:54 hobbs Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.141 2004/05/27 20:08:20 msofer Exp $
*/
+#include <stddef.h>
#include "tclInt.h"
#include "tclCompile.h"
@@ -1545,7 +1546,7 @@ TclExecuteByteCode(interp, codePtr)
objPtr = expandNestList;
expandNestList = (Tcl_Obj *) objPtr->internalRep.twoPtrValue.ptr2;
objc = tosPtr - eePtr->stackPtr
- - (int) objPtr->internalRep.twoPtrValue.ptr1;
+ - (ptrdiff_t) objPtr->internalRep.twoPtrValue.ptr1;
TclDecrRefCount(objPtr);
}
@@ -4824,7 +4825,7 @@ TclExecuteByteCode(interp, codePtr)
*/
processCatch:
- while (tosPtr > (int) (eePtr->stackPtr[catchTop]) + eePtr->stackPtr) {
+ while (tosPtr > ((ptrdiff_t) (eePtr->stackPtr[catchTop])) + eePtr->stackPtr) {
valuePtr = POP_OBJECT();
TclDecrRefCount(valuePtr);
}