summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgahr <gahr@gahr.ch>2017-04-28 08:37:33 (GMT)
committergahr <gahr@gahr.ch>2017-04-28 08:37:33 (GMT)
commitcdb8c059fb04e193b1978610b3ed6750792efbff (patch)
tree2a69065d317c040fb2766235b814c875bcb4e591
parent7342be15b5dd49b2f2e2759a35516e31dc2bf657 (diff)
downloadtcl-cdb8c059fb04e193b1978610b3ed6750792efbff.zip
tcl-cdb8c059fb04e193b1978610b3ed6750792efbff.tar.gz
tcl-cdb8c059fb04e193b1978610b3ed6750792efbff.tar.bz2
Restore a few unsafe GetNumberFromObj calls
-rw-r--r--generic/tclExecute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index e8dab7a..04f0232 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -8184,8 +8184,8 @@ ExecuteExtendedBinaryMathOp(
int invalid, numPos, zero;
long shift;
- GetNumberFromObjUnsafe(valuePtr, &ptr1, &type1);
- GetNumberFromObjUnsafe(value2Ptr, &ptr2, &type2);
+ (void) GetNumberFromObj(NULL, valuePtr, &ptr1, &type1);
+ (void) GetNumberFromObj(NULL, value2Ptr, &ptr2, &type2);
switch (opcode) {
case INST_MOD:
@@ -9179,7 +9179,7 @@ ExecuteExtendedUnaryMathOp(
mp_int big;
Tcl_Obj *objResultPtr;
- GetNumberFromObjUnsafe(valuePtr, &ptr, &type);
+ (void) GetNumberFromObj(NULL, valuePtr, &ptr, &type);
switch (opcode) {
case INST_BITNOT: