Import Tcl 8.6.10
This commit is contained in:
@@ -131,7 +131,7 @@ TclObjTest_Init(
|
||||
*
|
||||
* TestbignumobjCmd --
|
||||
*
|
||||
* This function implmenets the "testbignumobj" command. It is used
|
||||
* This function implements the "testbignumobj" command. It is used
|
||||
* to exercise the bignum Tcl object type implementation.
|
||||
*
|
||||
* Results:
|
||||
@@ -290,9 +290,9 @@ TestbignumobjCmd(
|
||||
return TCL_ERROR;
|
||||
}
|
||||
if (!Tcl_IsShared(varPtr[varIndex])) {
|
||||
Tcl_SetIntObj(varPtr[varIndex], mp_iseven(&bignumValue));
|
||||
Tcl_SetIntObj(varPtr[varIndex], !mp_isodd(&bignumValue));
|
||||
} else {
|
||||
SetVarToObj(varPtr, varIndex, Tcl_NewIntObj(mp_iseven(&bignumValue)));
|
||||
SetVarToObj(varPtr, varIndex, Tcl_NewIntObj(!mp_isodd(&bignumValue)));
|
||||
}
|
||||
mp_clear(&bignumValue);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user