summaryrefslogtreecommitdiffstats
path: root/generic/tclTestObj.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2000-11-24 11:27:37 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2000-11-24 11:27:37 (GMT)
commitf8076c7264ff06e9d94f8d12f79697879c54b147 (patch)
tree04cbf71084d0140cae333ababd2f11c658ef988d /generic/tclTestObj.c
parentca54557b2a7a3ca47409fdf201e2e15bdd642741 (diff)
downloadtcl-f8076c7264ff06e9d94f8d12f79697879c54b147.zip
tcl-f8076c7264ff06e9d94f8d12f79697879c54b147.tar.gz
tcl-f8076c7264ff06e9d94f8d12f79697879c54b147.tar.bz2
Now correctly test for (and fix) Bug #119082.
Diffstat (limited to 'generic/tclTestObj.c')
-rw-r--r--generic/tclTestObj.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c
index 2733a8c..8232175 100644
--- a/generic/tclTestObj.c
+++ b/generic/tclTestObj.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTestObj.c,v 1.6 1999/06/15 22:06:17 hershey Exp $
+ * RCS: @(#) $Id: tclTestObj.c,v 1.7 2000/11/24 11:27:37 dkf Exp $
*/
#include "tclInt.h"
@@ -420,7 +420,8 @@ TestindexobjCmd(clientData, interp, objc, objv)
if (Tcl_GetIntFromObj(interp, objv[2], &index2) != TCL_OK) {
return TCL_ERROR;
}
- objv[1]->internalRep.twoPtrValue.ptr2 = (VOID *) index2;
+ objv[1]->internalRep.twoPtrValue.ptr2 =
+ (VOID *) (index2 * sizeof(char *));
result = Tcl_GetIndexFromObj((Tcl_Interp *) NULL, objv[1],
tablePtr, "token", 0, &index);
if (result == TCL_OK) {