summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-02-14 22:54:18 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-02-14 22:54:18 (GMT)
commit34bab026d12e407d9bf7e5d9eca2012f2e9a1f97 (patch)
tree5a7efcd47ecb8cf811fafa33962c81ad8f0da45c /generic
parentfa44b044329477881fa019cb851c184812368416 (diff)
downloadtcl-34bab026d12e407d9bf7e5d9eca2012f2e9a1f97.zip
tcl-34bab026d12e407d9bf7e5d9eca2012f2e9a1f97.tar.gz
tcl-34bab026d12e407d9bf7e5d9eca2012f2e9a1f97.tar.bz2
* generic/tclTestObj.c: Revise updates to [teststringobj] so we don't
get blocked by MODULE_SCOPE limits.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclTestObj.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c
index 524f05a..cc194b8 100644
--- a/generic/tclTestObj.c
+++ b/generic/tclTestObj.c
@@ -13,7 +13,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.31 2009/02/12 17:08:45 dgp Exp $
+ * RCS: @(#) $Id: tclTestObj.c,v 1.32 2009/02/14 22:54:19 dgp Exp $
*/
#include "tclInt.h"
@@ -1096,9 +1096,8 @@ TeststringobjCmd(
goto wrongNumArgs;
}
if (varPtr[varIndex] != NULL) {
- if ((varPtr[varIndex])->typePtr != &tclStringType) {
- Tcl_ConvertToType(NULL, varPtr[varIndex], &tclStringType);
- }
+ Tcl_ConvertToType(NULL, varPtr[varIndex],
+ Tcl_GetObjType("string"));
strPtr = (TestString *)
(varPtr[varIndex])->internalRep.otherValuePtr;
length = (int) strPtr->allocated;
@@ -1152,9 +1151,8 @@ TeststringobjCmd(
goto wrongNumArgs;
}
if (varPtr[varIndex] != NULL) {
- if ((varPtr[varIndex])->typePtr != &tclStringType) {
- Tcl_ConvertToType(NULL, varPtr[varIndex], &tclStringType);
- }
+ Tcl_ConvertToType(NULL, varPtr[varIndex],
+ Tcl_GetObjType("string"));
strPtr = (TestString *)
(varPtr[varIndex])->internalRep.otherValuePtr;
length = (int) strPtr->uallocated;