summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2014-01-10 15:58:41 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2014-01-10 15:58:41 (GMT)
commitc3c6e803684022dcc788ddbfc4a59a6d0dfde102 (patch)
treee059ae617b58faac8fe25b5c8b71697b13b788df /generic/tclExecute.c
parentacf1cebeab93607fc83206e77534b5fada8726ef (diff)
downloadtcl-c3c6e803684022dcc788ddbfc4a59a6d0dfde102.zip
tcl-c3c6e803684022dcc788ddbfc4a59a6d0dfde102.tar.gz
tcl-c3c6e803684022dcc788ddbfc4a59a6d0dfde102.tar.bz2
a different approach
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 5b42124..2707ec1 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -5776,6 +5776,14 @@ TEBCresume(
int type1, type2;
long l1, l2, lResult;
+ case INST_NUM_TYPE:
+ if (GetNumberFromObj(NULL, OBJ_AT_TOS, &ptr1, &type1) != TCL_OK) {
+ type1 = 0;
+ }
+ TclNewIntObj(objResultPtr, type1);
+ TRACE(("\"%.20s\" => %d\n", O2S(OBJ_AT_TOS), type1));
+ NEXT_INST_F(1, 1, 1);
+
case INST_EQ:
case INST_NEQ:
case INST_LT: