Fixed non dereferenced py pointer in ParameterPy

This commit is contained in:
Yorik van Havre 2016-02-01 13:34:37 -02:00
parent fdcd605498
commit c25595266b

View File

@ -277,7 +277,7 @@ Py::Object ParameterGrpPy::getUnsigned(const Py::Tuple& args)
throw Py::Exception();
#if PY_MAJOR_VERSION < 3
PyObject* val = Py_BuildValue("I",_cParamGrp->GetUnsigned(pstr,UInt));
return Py::Int(val);
return Py::asObject(val);
#else
return Py::Long(_cParamGrp->GetUnsigned(pstr,UInt));
#endif