Commit 01ac8b6a authored by Mark Dickinson's avatar Mark Dickinson

Use correct types for ASCII_CHAR_MASK integer constants.

parent 7319f69f
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
/* Mask to quickly check whether a C 'long' contains a /* Mask to quickly check whether a C 'long' contains a
non-ASCII, UTF8-encoded char. */ non-ASCII, UTF8-encoded char. */
#if (SIZEOF_LONG == 8) #if (SIZEOF_LONG == 8)
# define ASCII_CHAR_MASK 0x8080808080808080L # define ASCII_CHAR_MASK 0x8080808080808080UL
#elif (SIZEOF_LONG == 4) #elif (SIZEOF_LONG == 4)
# define ASCII_CHAR_MASK 0x80808080L # define ASCII_CHAR_MASK 0x80808080UL
#else #else
# error C 'long' size should be either 4 or 8! # error C 'long' size should be either 4 or 8!
#endif #endif
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
/* Mask to quickly check whether a C 'long' contains a /* Mask to quickly check whether a C 'long' contains a
non-ASCII, UTF8-encoded char. */ non-ASCII, UTF8-encoded char. */
#if (SIZEOF_LONG == 8) #if (SIZEOF_LONG == 8)
# define UCS1_ASCII_CHAR_MASK 0x8080808080808080L # define UCS1_ASCII_CHAR_MASK 0x8080808080808080UL
#elif (SIZEOF_LONG == 4) #elif (SIZEOF_LONG == 4)
# define UCS1_ASCII_CHAR_MASK 0x80808080L # define UCS1_ASCII_CHAR_MASK 0x80808080UL
#else #else
# error C 'long' size should be either 4 or 8! # error C 'long' size should be either 4 or 8!
#endif #endif
......
...@@ -4639,9 +4639,9 @@ PyUnicode_DecodeUTF8(const char *s, ...@@ -4639,9 +4639,9 @@ PyUnicode_DecodeUTF8(const char *s,
/* Mask to quickly check whether a C 'long' contains a /* Mask to quickly check whether a C 'long' contains a
non-ASCII, UTF8-encoded char. */ non-ASCII, UTF8-encoded char. */
#if (SIZEOF_LONG == 8) #if (SIZEOF_LONG == 8)
# define ASCII_CHAR_MASK 0x8080808080808080L # define ASCII_CHAR_MASK 0x8080808080808080UL
#elif (SIZEOF_LONG == 4) #elif (SIZEOF_LONG == 4)
# define ASCII_CHAR_MASK 0x80808080L # define ASCII_CHAR_MASK 0x80808080UL
#else #else
# error C 'long' size should be either 4 or 8! # error C 'long' size should be either 4 or 8!
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment