Skip to content

Commit

Permalink
Fixed non dereferenced py pointer in ParameterPy
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Feb 1, 2016
1 parent fdcd605 commit c255952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base/ParameterPy.cpp
Expand Up @@ -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
Expand Down

0 comments on commit c255952

Please sign in to comment.