Skip to content
Snippets Groups Projects
Commit 6cde5fd0 authored by Antonio El Khoury's avatar Antonio El Khoury
Browse files

Fix compilation on Ubuntu 10.04 (32 bits).

parent e2ce0682
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ namespace dynamicgraph {
}
size = PyTuple_Size(pyObject);
v.resize(size);
for (unsigned int i=0; i<size; i++) {
for (Py_ssize_t i=0; i<size; i++) {
PyObject* pyDouble = PyTuple_GetItem(pyObject, i);
if (PyFloat_Check(pyDouble))
v(i) = PyFloat_AsDouble(pyDouble);
......@@ -165,7 +165,7 @@ namespace dynamicgraph {
m.resize((unsigned int)nRows, (unsigned int)nCols);
fillMatrixRow(m, 0, row);
for (unsigned int iRow=1; iRow<nRows; iRow++) {
for (Py_ssize_t iRow=1; iRow<nRows; iRow++) {
row = PyTuple_GetItem(pyObject, iRow);
if (!PyTuple_Check(row)) {
throw ExceptionPython(ExceptionPython::MATRIX_PARSING,
......
......@@ -218,7 +218,7 @@ namespace dynamicgraph {
}
std::vector<Value> valueVector;
for (unsigned int iParam=0; iParam<size; iParam++) {
for (Py_ssize_t iParam=0; iParam<size; iParam++) {
PyObject* PyValue = PyTuple_GetItem(argTuple, iParam);
Value::Type valueType = typeVector[iParam];
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment