summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2012-07-07 12:08:48 (GMT)
committerMark Dickinson <mdickinson@enthought.com>2012-07-07 12:08:48 (GMT)
commit01ac8b6ab1474d863f364b6c11eb9fce62324169 (patch)
tree4fc224f7887a6bc8946ace9bca4329b827599b3b /Objects/stringlib
parent7319f69f490f6f787297904dff901500576c886e (diff)
downloadcpython-01ac8b6ab1474d863f364b6c11eb9fce62324169.zip
cpython-01ac8b6ab1474d863f364b6c11eb9fce62324169.tar.gz
cpython-01ac8b6ab1474d863f364b6c11eb9fce62324169.tar.bz2
Use correct types for ASCII_CHAR_MASK integer constants.
Diffstat (limited to 'Objects/stringlib')
-rw-r--r--Objects/stringlib/codecs.h4
-rw-r--r--Objects/stringlib/find_max_char.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/Objects/stringlib/codecs.h b/Objects/stringlib/codecs.h
index 63bf648..7d55f49 100644
--- a/Objects/stringlib/codecs.h
+++ b/Objects/stringlib/codecs.h
@@ -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
diff --git a/Objects/stringlib/find_max_char.h b/Objects/stringlib/find_max_char.h
index 098aeec..9e344a0 100644
--- a/Objects/stringlib/find_max_char.h
+++ b/Objects/stringlib/find_max_char.h
@@ -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