Separated some variable declarations from the code, for wider compiler support.

This commit is contained in:
Yann Vernier
2005-01-23 20:15:06 +00:00
parent 79c4e8a247
commit 7f4f5deac4

View File

@@ -272,12 +272,14 @@ static PyObject *M_Mathutils_Vector( PyObject * self, PyObject * args )
goto bad_args; // Invalid vector size
}
for (i=0; i<size; i++) {
PyObject *v=PySequence_GetItem(listObject, i);
PyObject *v, *f;
v=PySequence_GetItem(listObject, i);
if (v==NULL) {
Py_DECREF(listObject);
return NULL; // Failed to read sequence
}
PyObject *f=PyNumber_Float(v);
f=PyNumber_Float(v);
if(f==NULL) {
Py_DECREF(v);
goto bad_args;