Skip to content

Commit e7cf039

Browse files
authored
Merge pull request yasoob#159 from karlsebal/patch-1
Update python_c_extension.rst
2 parents 50d933c + 84cb657 commit e7cf039

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python_c_extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ file, it's pretty straight forward.
252252
long length = PyList_Size(listObj);
253253
254254
//iterate over all the elements
255-
int i, sum =0;
255+
long i, sum =0;
256256
for(i = 0; i < length; i++){
257257
//get an element out of the list - the element is also a python objects
258258
PyObject* temp = PyList_GetItem(listObj, i);

0 commit comments

Comments
 (0)