mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Use correct types for ASCII_CHAR_MASK integer constants.
This commit is contained in:
parent
7319f69f49
commit
01ac8b6ab1
3 changed files with 6 additions and 6 deletions
|
@ -4639,9 +4639,9 @@ PyUnicode_DecodeUTF8(const char *s,
|
|||
/* Mask to quickly check whether a C 'long' contains a
|
||||
non-ASCII, UTF8-encoded char. */
|
||||
#if (SIZEOF_LONG == 8)
|
||||
# define ASCII_CHAR_MASK 0x8080808080808080L
|
||||
# define ASCII_CHAR_MASK 0x8080808080808080UL
|
||||
#elif (SIZEOF_LONG == 4)
|
||||
# define ASCII_CHAR_MASK 0x80808080L
|
||||
# define ASCII_CHAR_MASK 0x80808080UL
|
||||
#else
|
||||
# error C 'long' size should be either 4 or 8!
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue