diff --git a/spacy/syntax/_state.pxd b/spacy/syntax/_state.pxd index d60161a98..933ecca3e 100644 --- a/spacy/syntax/_state.pxd +++ b/spacy/syntax/_state.pxd @@ -115,7 +115,7 @@ cdef cppclass StateC: if i < 0 or i >= this.length: return -1 cdef const TokenC* target = &this._sent[i] - if target.l_kids < idx: + if target.l_kids < idx: return -1 cdef const TokenC* ptr = &this._sent[target.l_edge] @@ -141,7 +141,7 @@ cdef cppclass StateC: if i < 0 or i >= this.length: return -1 cdef const TokenC* target = &this._sent[i] - if target.r_kids < idx: + if target.r_kids < idx: return -1 cdef const TokenC* ptr = &this._sent[target.r_edge] while ptr > target: