Do not pass 0 to PyObject_IsTrue

This commit is contained in:
wmayer
2012-12-30 23:16:56 +01:00
parent 15274f1b80
commit 0ebffa930a
7 changed files with 41 additions and 41 deletions

View File

@@ -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;