Do not pass 0 to PyObject_IsTrue
This commit is contained in:
@@ -127,9 +127,9 @@ PyObject* MeshPy::copy(PyObject *args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ""))
|
||||
return NULL;
|
||||
|
||||
|
||||
const MeshCore::MeshKernel& kernel = getMeshObjectPtr()->getKernel();
|
||||
return new MeshPy(new MeshObject(kernel));
|
||||
return new MeshPy(new MeshObject(kernel));
|
||||
}
|
||||
|
||||
PyObject* MeshPy::read(PyObject *args)
|
||||
@@ -238,7 +238,7 @@ PyObject* MeshPy::offsetSpecial(PyObject *args)
|
||||
PyObject* MeshPy::crossSections(PyObject *args)
|
||||
{
|
||||
PyObject *obj;
|
||||
PyObject *poly=0;
|
||||
PyObject *poly=Py_False;
|
||||
float min_eps = 1.0e-2f;
|
||||
if (!PyArg_ParseTuple(args, "O!|fO!", &PyList_Type, &obj, &min_eps, &PyBool_Type, &poly))
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user