summaryrefslogtreecommitdiff
path: root/python/src/vectors.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/vectors.pxi')
-rw-r--r--python/src/vectors.pxi1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/src/vectors.pxi b/python/src/vectors.pxi
index ce95968c..cd1c2598 100644
--- a/python/src/vectors.pxi
+++ b/python/src/vectors.pxi
@@ -54,6 +54,7 @@ cdef class SparseVector:
def __iter__(self):
cdef FastSparseVector[weight_t].const_iterator* it = new FastSparseVector[weight_t].const_iterator(self.vector[0], False)
+ cdef unsigned i
try:
for i in range(self.vector.size()):
yield (FDConvert(it[0].ptr().first).c_str(), it[0].ptr().second)