fixed building Python wrappers when Numpy is not available

This commit is contained in:
Vadim Pisarevsky
2010-11-03 17:57:51 +00:00
parent 37c1204d55
commit 8a8ba57b20
5 changed files with 29 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ static PyObject* pyopencv_from(const ${cname}& r)
static bool pyopencv_to(PyObject* src, ${cname}& dst, const char* name="<unknown>")
{
if( src == NULL or src == Py_None )
if( src == NULL || src == Py_None )
return true;
if(!PyObject_TypeCheck(src, &pyopencv_${name}_Type))
{