Core: replace PyObject_IsTrue with Base::asBoolean
This commit is contained in:
@@ -256,7 +256,7 @@ PyObject* LinkBaseExtensionPy::cacheChildLabel(PyObject *args) {
|
||||
if(!PyArg_ParseTuple(args,"|O",&enable))
|
||||
return nullptr;
|
||||
PY_TRY {
|
||||
getLinkBaseExtensionPtr()->cacheChildLabel(PyObject_IsTrue(enable)?-1:0);
|
||||
getLinkBaseExtensionPtr()->cacheChildLabel(Base::asBoolean(enable) ? -1 : 0);
|
||||
Py_Return;
|
||||
}PY_CATCH;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user