aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2012-08-19 10:33:30 +1000
committerSteve Bennett <steveb@workware.net.au>2012-08-19 10:49:27 +1000
commit935d76b11cd4280a23af67a1b19f35670eadc59d (patch)
tree243f1fbdf599358c50fd8e06722aae3caab1d017
parentdf598a649b8aa8d52e1ce7fbdd2fb745592858f2 (diff)
downloadjimtcl-935d76b11cd4280a23af67a1b19f35670eadc59d.zip
jimtcl-935d76b11cd4280a23af67a1b19f35670eadc59d.tar.gz
jimtcl-935d76b11cd4280a23af67a1b19f35670eadc59d.tar.bz2
Reference keys are unsigned long, not jim_wide
This fixes an invalid memory reference in [info references] Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r--jim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim.c b/jim.c
index cb279b0..d85895b 100644
--- a/jim.c
+++ b/jim.c
@@ -13830,7 +13830,7 @@ static int JimInfoReferences(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
while ((he = Jim_NextHashEntry(htiter)) != NULL) {
char buf[JIM_REFERENCE_SPACE];
Jim_Reference *refPtr = he->u.val;
- const jim_wide *refId = he->key;
+ const unsigned long *refId = he->key;
JimFormatReference(buf, refPtr, *refId);
Jim_ListAppendElement(interp, listObjPtr, Jim_NewStringObj(interp, buf, -1));