Part: Move default geometry extension for int to internally use long

This commit is contained in:
Abdullah Tahiri
2019-02-10 14:28:46 +01:00
committed by wmayer
parent 69c3b7d4f8
commit c670ef9793
3 changed files with 6 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ int GeometryIntExtensionPy::PyInit(PyObject* args, PyObject* /*kwd*/)
}
PyErr_Clear();
int Id;
long Id;
if (PyArg_ParseTuple(args, "i", &Id)) {
this->getGeometryIntExtensionPtr()->setValue(Id);
return 0;
@@ -65,7 +65,7 @@ int GeometryIntExtensionPy::PyInit(PyObject* args, PyObject* /*kwd*/)
PyErr_SetString(PyExc_TypeError, "GeometryIntExtension constructor accepts:\n"
"-- empty parameter list\n"
"-- int\n");
"-- long int\n");
return -1;
}