diff options
author | Steve Bennett <steveb@workware.net.au> | 2012-08-19 10:33:30 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2012-08-19 10:49:27 +1000 |
commit | 935d76b11cd4280a23af67a1b19f35670eadc59d (patch) | |
tree | 243f1fbdf599358c50fd8e06722aae3caab1d017 | |
parent | df598a649b8aa8d52e1ce7fbdd2fb745592858f2 (diff) | |
download | jimtcl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |