summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2004-09-23 00:34:31 (GMT)
committerdgp@users.sourceforge.net <dgp>2004-09-23 00:34:31 (GMT)
commit07e98130bd91d1fe08c29b8879be416c0685699c (patch)
tree60e95087ade63e667029529d83fddd3e7c0edd06 /generic/tclCompile.c
parentd918b6872c2d4d41a50936f760da31606d6cef50 (diff)
downloadtcl-07e98130bd91d1fe08c29b8879be416c0685699c.zip
tcl-07e98130bd91d1fe08c29b8879be416c0685699c.tar.gz
tcl-07e98130bd91d1fe08c29b8879be416c0685699c.tar.bz2
Corrected the base for the errorline calculation
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 86602bd..f02b29d 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.73 2004/09/22 22:23:39 dgp Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.74 2004/09/23 00:34:31 dgp Exp $
*/
#include "tclInt.h"
@@ -969,7 +969,7 @@ TclCompileScript(interp, script, numBytes, envPtr)
Tcl_ListObjAppendElement(NULL, returnCmd, errInfo);
- for (p = script; p != parse.commandStart; p++) {
+ for (p = envPtr->source; p != parse.commandStart; p++) {
if (*p == '\n') {
errorLine++;
}