summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--generic/tclExecute.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e395c7..73715c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-05-22 Miguel Sofer <msofer@users.sourceforge.net>
+
+ * generic/tclExecute.c: removed Tcl_DuplicateObj in INST_DUP
+
2001-05-19 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* Note that "tclbench" (see project "tcllib") was extended with
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index facb099..f6ca674 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.23 2001/05/17 02:13:02 hobbs Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.24 2001/05/22 15:32:22 msofer Exp $
*/
#include "tclInt.h"
@@ -678,7 +678,7 @@ TclExecuteByteCode(interp, codePtr)
case INST_DUP:
valuePtr = stackPtr[stackTop];
- PUSH_OBJECT(Tcl_DuplicateObj(valuePtr));
+ PUSH_OBJECT(valuePtr);
TRACE_WITH_OBJ(("=> "), valuePtr);
ADJUST_PC(1);