mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 09:44:36 +03:00
* Fix compiler warning about signed/unsigned comparison
This commit is contained in:
parent
98fbdf2856
commit
e3db39dd21
|
@ -115,7 +115,7 @@ cdef cppclass StateC:
|
||||||
if i < 0 or i >= this.length:
|
if i < 0 or i >= this.length:
|
||||||
return -1
|
return -1
|
||||||
cdef const TokenC* target = &this._sent[i]
|
cdef const TokenC* target = &this._sent[i]
|
||||||
if target.l_kids < idx:
|
if target.l_kids < <uint32_t>idx:
|
||||||
return -1
|
return -1
|
||||||
cdef const TokenC* ptr = &this._sent[target.l_edge]
|
cdef const TokenC* ptr = &this._sent[target.l_edge]
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ cdef cppclass StateC:
|
||||||
if i < 0 or i >= this.length:
|
if i < 0 or i >= this.length:
|
||||||
return -1
|
return -1
|
||||||
cdef const TokenC* target = &this._sent[i]
|
cdef const TokenC* target = &this._sent[i]
|
||||||
if target.r_kids < idx:
|
if target.r_kids < <uint32_t>idx:
|
||||||
return -1
|
return -1
|
||||||
cdef const TokenC* ptr = &this._sent[target.r_edge]
|
cdef const TokenC* ptr = &this._sent[target.r_edge]
|
||||||
while ptr > target:
|
while ptr > target:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user