]> granicus.if.org Git - python/commitdiff
Use correct types for ASCII_CHAR_MASK integer constants.
authorMark Dickinson <mdickinson@enthought.com>
Sat, 7 Jul 2012 12:08:48 +0000 (14:08 +0200)
committerMark Dickinson <mdickinson@enthought.com>
Sat, 7 Jul 2012 12:08:48 +0000 (14:08 +0200)
Objects/stringlib/codecs.h
Objects/stringlib/find_max_char.h
Objects/unicodeobject.c

index 63bf648d78824e01440974a961d43f425adc780b..7d55f49a0033aff7fa4f7420f2d2b530b575b51b 100644 (file)
@@ -8,9 +8,9 @@
 /* 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
index 098aeec46a572857144067cb19d93d9ac3d1c1f7..9e344a0de95e708e0992c20e7a33124d14cbf420 100644 (file)
@@ -8,9 +8,9 @@
 /* Mask to quickly check whether a C 'long' contains a
    non-ASCII, UTF8-encoded char. */
 #if (SIZEOF_LONG == 8)
-# define UCS1_ASCII_CHAR_MASK 0x8080808080808080L
+# define UCS1_ASCII_CHAR_MASK 0x8080808080808080UL
 #elif (SIZEOF_LONG == 4)
-# define UCS1_ASCII_CHAR_MASK 0x80808080L
+# define UCS1_ASCII_CHAR_MASK 0x80808080UL
 #else
 # error C 'long' size should be either 4 or 8!
 #endif
index 353d2bbf2fa64e992a238338e29c795c91d39e35..3e3abfc237eaf230d197daeaf381a7946b84368f 100644 (file)
@@ -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