summaryrefslogtreecommitdiffstats
path: root/generic/tclTestObj.c
diff options
context:
space:
mode:
authorkennykb <kennykb@noemail.net>2002-02-15 23:42:11 (GMT)
committerkennykb <kennykb@noemail.net>2002-02-15 23:42:11 (GMT)
commitfcffc703fd991f594e64d5ec676065a33c91bcc8 (patch)
tree87a231b742d00bcbf481e3439acb70032c612370 /generic/tclTestObj.c
parentafb5a69112019f2bde36ef53a9c4e79a0a021f77 (diff)
downloadtcl-fcffc703fd991f594e64d5ec676065a33c91bcc8.zip
tcl-fcffc703fd991f594e64d5ec676065a33c91bcc8.tar.gz
tcl-fcffc703fd991f594e64d5ec676065a33c91bcc8.tar.bz2
Further changes to the TIP 72 patch to make it compile under VC++
FossilOrigin-Name: ffd6a7d7738c855d3f78a3b416a52091432c6b02
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 5d36cc0..ec489d6 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.10 2002/02/15 14:28:49 dkf Exp $
+ * RCS: @(#) $Id: tclTestObj.c,v 1.11 2002/02/15 23:42:12 kennykb Exp $
*/
#include "tclInt.h"
@@ -465,7 +465,8 @@ TestindexobjCmd(clientData, interp, objc, objv)
* the index object, clear out the object's cached state.
*/
- if (objv[3]->typePtr == &tclIndexType) {
+ if ( objv[3]->typePtr != NULL
+ && !strcmp( "index", objv[3]->typePtr->name ) ) {
indexRep = (struct IndexRep *) objv[3]->internalRep.otherValuePtr;
if (indexRep->tablePtr == (VOID *) argv) {
objv[3]->typePtr->freeIntRepProc(objv[3]);