[pywin32-checkins] pywin32/win32/src win32service.i,1.12,1.13
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2007-06-01 12:57:00
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25327 Modified Files: win32service.i Log Message: Move decl of variable from loop to fix compile error Index: win32service.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32service.i,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** win32service.i 14 Mar 2007 22:28:53 -0000 1.12 --- win32service.i 1 Jun 2007 12:57:00 -0000 1.13 *************** *** 722,727 **** int numStrings = PySequence_Length(obDeps); // Need to loop twice - once to get the buffer length ! int len = 0; ! for (int i=0;i<numStrings;i++) { PyObject *obString = PySequence_GetItem(obDeps, i); if (obString==NULL) --- 722,727 ---- int numStrings = PySequence_Length(obDeps); // Need to loop twice - once to get the buffer length ! int i, len = 0; ! for (i=0;i<numStrings;i++) { PyObject *obString = PySequence_GetItem(obDeps, i); if (obString==NULL) |