diff --git a/spacy/syntax/_state.pxd b/spacy/syntax/_state.pxd index 12ec19c16..c06851978 100644 --- a/spacy/syntax/_state.pxd +++ b/spacy/syntax/_state.pxd @@ -100,7 +100,7 @@ cdef cppclass StateC: ids[4] = this.E(0)-1 else: ids[4] = -1 - if ids[3] < (this.length+1): + if (ids[3]+1) < this.length: ids[5] = this.E(0)+1 else: ids[5] = -1