summaryrefslogtreecommitdiffstats
path: root/generic/tclEncoding.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-01-21 02:25:25 (GMT)
committerhobbs <hobbs>2000-01-21 02:25:25 (GMT)
commitdf05056e3fba1a1d7b9cde6fc893514f18c6c5c5 (patch)
tree3f8bc62d1bca80a5df23cb59d2c23105866f2dae /generic/tclEncoding.c
parentdf89ccaf7788364be35910a9f84ba16a854d1643 (diff)
downloadtcl-df05056e3fba1a1d7b9cde6fc893514f18c6c5c5.zip
tcl-df05056e3fba1a1d7b9cde6fc893514f18c6c5c5.tar.gz
tcl-df05056e3fba1a1d7b9cde6fc893514f18c6c5c5.tar.bz2
* generic/tclCmdIL.c (InfoBodyCmd): made [info body] return a
string if the body has been bytecompiled. * generic/tclBasic.c (Tcl_EvalObjEx): added pedantic check for originating proc body of bytecompiled code, #def'd out as the change for [info body] should make it unnecessary * tests/set.test: added test for complex array elem name compiling * generic/tclCompCmds.c (TclCompileSetCmd): Fixed parsing of array elements during compiling, and slightly optimised same [Bug: 3889]
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r--generic/tclEncoding.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index 89453f5..c70dd0b 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclEncoding.c,v 1.4 1999/12/12 22:46:41 hobbs Exp $
+ * RCS: @(#) $Id: tclEncoding.c,v 1.5 2000/01/21 02:25:26 hobbs Exp $
*/
#include "tclInt.h"
@@ -738,9 +738,9 @@ Tcl_CreateEncoding(typePtr)
encodingPtr->nullSize = typePtr->nullSize;
encodingPtr->clientData = typePtr->clientData;
if (typePtr->nullSize == 1) {
- encodingPtr->lengthProc = strlen;
+ encodingPtr->lengthProc = (LengthProc *) strlen;
} else {
- encodingPtr->lengthProc = unilen;
+ encodingPtr->lengthProc = (LengthProc *) unilen;
}
encodingPtr->refCount = 1;
encodingPtr->hPtr = hPtr;