Fix off-by-one error in vectors

This commit is contained in:
Explosion Bot 2017-10-30 16:22:03 +01:00
parent 05a1dd570e
commit d0cf12c8c7
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ cdef class Vectors:
if row >= self.keys.shape[0]:
self.keys.resize((row*2,))
self.data.resize((row*2, self.data.shape[1]))
self.keys[self.i] = key
self.keys[row] = key
self.key2row[key] = row
self.keys[row] = key