Skip to content

Commit b90dd10

Browse files
committed
warning C4267: 'function': conversion from 'size_t' to 'int',
possible loss of data
1 parent 2be2dd5 commit b90dd10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/unicodedata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ _getcode(const char* name, int namelen, Py_UCS4* code)
14931493
}
14941494

14951495
if (i < (int)Py_ARRAY_LENGTH(derived_name_prefixes)) {
1496-
Py_UCS4 v = parse_hex_code(name + prefixlen, namelen - prefixlen);
1496+
Py_UCS4 v = parse_hex_code(name + prefixlen, namelen - (int)prefixlen);
14971497
if (find_prefix_id(v) != i) {
14981498
return 0;
14991499
}

0 commit comments

Comments
 (0)