summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorJoe Mistachkin <joe@mistachkin.com>2011-07-11 20:04:06 (GMT)
committerJoe Mistachkin <joe@mistachkin.com>2011-07-11 20:04:06 (GMT)
commitff18e6785fda0ce090fefdcb52c03a8be6e3be40 (patch)
treee74c14be696e3cfefb2dffc56c55de7853cf1eb7 /generic/tclExecute.c
parent7de2d9b5b87e82cedfac3e371569e8a319e7a21e (diff)
downloadtcl-ff18e6785fda0ce090fefdcb52c03a8be6e3be40.zip
tcl-ff18e6785fda0ce090fefdcb52c03a8be6e3be40.tar.gz
tcl-ff18e6785fda0ce090fefdcb52c03a8be6e3be40.tar.bz2
Correct cast for CURR_DEPTH to silence compiler warning. [Bug 3339502]
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 84b0b63..fee096a 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -335,7 +335,7 @@ VarHashCreateVar(
#define OBJ_AT_DEPTH(n) *(tosPtr-(n))
-#define CURR_DEPTH ((unsigned long) (tosPtr - initTosPtr))
+#define CURR_DEPTH ((ptrdiff_t) (tosPtr - initTosPtr))
/*
* Macros used to trace instruction execution. The macros TRACE,