diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2004-06-08 19:27:01 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2004-06-08 19:27:01 (GMT) |
commit | e8001372a990fb7ff88cbab5b1661413d9da68c6 (patch) | |
tree | d8b051ebe28b96bbf3c03d11072e4ec42447d0e4 /generic/tclCompile.c | |
parent | 71d29f51af72942fd0ff29013cd77a59cddbcbca (diff) | |
download | tcl-e8001372a990fb7ff88cbab5b1661413d9da68c6.zip tcl-e8001372a990fb7ff88cbab5b1661413d9da68c6.tar.gz tcl-e8001372a990fb7ff88cbab5b1661413d9da68c6.tar.bz2 |
* generic/tclCompile.c:
* generic/tclExecute.c: handle warning [Bug 969066]
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r-- | generic/tclCompile.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index 0f1e615..58627d1 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCompile.c,v 1.66 2004/05/16 17:25:48 msofer Exp $ + * RCS: @(#) $Id: tclCompile.c,v 1.67 2004/06/08 19:27:01 msofer Exp $ */ #include "tclInt.h" @@ -1634,7 +1634,9 @@ TclInitByteCodeObj(objPtr, envPtr) size_t codeBytes, objArrayBytes, exceptArrayBytes, cmdLocBytes; size_t auxDataArrayBytes, structureSize; register unsigned char *p; +#ifdef TCL_COMPILE_DEBUG unsigned char *nextPtr; +#endif int numLitObjects = envPtr->literalArrayNext; Namespace *namespacePtr; int i; @@ -1715,8 +1717,10 @@ TclInitByteCodeObj(objPtr, envPtr) } p += auxDataArrayBytes; +#ifndef TCL_COMPILE_DEBUG + EncodeCmdLocMap(envPtr, codePtr, (unsigned char *) p); +#else nextPtr = EncodeCmdLocMap(envPtr, codePtr, (unsigned char *) p); -#ifdef TCL_COMPILE_DEBUG if (((size_t)(nextPtr - p)) != cmdLocBytes) { Tcl_Panic("TclInitByteCodeObj: encoded cmd location bytes %d != expected size %d\n", (nextPtr - p), cmdLocBytes); } |