diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2000-11-24 11:27:37 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2000-11-24 11:27:37 (GMT) |
| commit | ee230ab039f3d8ebbf67627060789e8979bb0f57 (patch) | |
| tree | 04cbf71084d0140cae333ababd2f11c658ef988d /generic/tclTestObj.c | |
| parent | d0818d49d96a32411256c8a1618e4e8d8341a4d2 (diff) | |
| download | tcl-ee230ab039f3d8ebbf67627060789e8979bb0f57.zip tcl-ee230ab039f3d8ebbf67627060789e8979bb0f57.tar.gz tcl-ee230ab039f3d8ebbf67627060789e8979bb0f57.tar.bz2 | |
Now correctly test for (and fix) Bug #119082.
Diffstat (limited to 'generic/tclTestObj.c')
| -rw-r--r-- | generic/tclTestObj.c | 5 |
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) { |
