From e3db39dd2114cc9bf2f5633a399fe911bfd33381 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 1 Feb 2016 09:08:07 +0100 Subject: [PATCH] * Fix compiler warning about signed/unsigned comparison --- spacy/syntax/_state.pxd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: