mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
TCL9: Tcl_GetIntFromObj() call checked
This API uses address of operator to Tcl API with (int) type, but does not use Tcl_Size in TCL9, it remained an (int) type.
This commit is contained in:
committed by
Tim Edwards
parent
661b66a143
commit
4a32a82841
@@ -854,6 +854,7 @@ TxDialog(prompt, responses, defresp)
|
||||
|
||||
Tcl_EvalEx(magicinterp, evalstr, -1, 0);
|
||||
objPtr = Tcl_GetObjResult(magicinterp);
|
||||
/* tcl9 checked, this API is still (int) for &code */
|
||||
result = Tcl_GetIntFromObj(magicinterp, objPtr, &code);
|
||||
|
||||
if (result == TCL_OK) return code;
|
||||
|
||||
Reference in New Issue
Block a user