Initialize State offset to 0

This commit is contained in:
Matthew Honnibal 2017-08-12 17:14:39 -05:00
parent b353e4d843
commit d4308d2363
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ cdef cppclass StateC:
this.shifted = <bint*>calloc(length + (PADDING * 2), sizeof(bint))
this._sent = <TokenC*>calloc(length + (PADDING * 2), sizeof(TokenC))
this._ents = <Entity*>calloc(length + (PADDING * 2), sizeof(Entity))
this.offset = 0
cdef int i
for i in range(length + (PADDING * 2)):
this._ents[i].end = -1