fixed many warnings from GCC 4.6.1

Esse commit está contido em:
Vadim Pisarevsky
2012-03-17 09:22:31 +00:00
commit 846e37ded5
34 arquivos alterados com 84 adições e 147 exclusões
+1 -1
Ver Arquivo
@@ -345,7 +345,7 @@ static bool pyopencv_to(PyObject* obj, size_t& value, const char* name = "<unkno
if(!obj || obj == Py_None)
return true;
value = (int)PyLong_AsUnsignedLong(obj);
return value != -1 || !PyErr_Occurred();
return value != (size_t)-1 || !PyErr_Occurred();
}
static PyObject* pyopencv_from(int value)