Avoid libc.stdint for UINT64_MAX (#5545)

This commit is contained in:
adrianeboyd 2020-06-04 20:02:05 +02:00 committed by GitHub
parent 4d1ba6feb4
commit 1ac43d78f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@ import numpy
import warnings
from thinc.neural.util import get_array_module
from libc.stdint cimport UINT64_MAX
from .typedefs cimport attr_t, flags_t
from .attrs cimport IS_ALPHA, IS_ASCII, IS_DIGIT, IS_LOWER, IS_PUNCT, IS_SPACE
from .attrs cimport IS_TITLE, IS_UPPER, LIKE_URL, LIKE_NUM, LIKE_EMAIL, IS_STOP
@ -23,7 +22,7 @@ from .attrs import intify_attrs
from .errors import Errors, Warnings
OOV_RANK = UINT64_MAX
OOV_RANK = 0xffffffffffffffff # UINT64_MAX
memset(&EMPTY_LEXEME, 0, sizeof(LexemeC))
EMPTY_LEXEME.id = OOV_RANK