Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
01ac8b6a
Commit
01ac8b6a
authored
Jul 07, 2012
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct types for ASCII_CHAR_MASK integer constants.
parent
7319f69f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Objects/stringlib/codecs.h
Objects/stringlib/codecs.h
+2
-2
Objects/stringlib/find_max_char.h
Objects/stringlib/find_max_char.h
+2
-2
Objects/unicodeobject.c
Objects/unicodeobject.c
+2
-2
No files found.
Objects/stringlib/codecs.h
View file @
01ac8b6a
...
@@ -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 0x8080808080808080
U
L
#elif (SIZEOF_LONG == 4)
#elif (SIZEOF_LONG == 4)
# define ASCII_CHAR_MASK 0x80808080L
# define ASCII_CHAR_MASK 0x80808080
U
L
#else
#else
# error C 'long' size should be either 4 or 8!
# error C 'long' size should be either 4 or 8!
#endif
#endif
...
...
Objects/stringlib/find_max_char.h
View file @
01ac8b6a
...
@@ -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 0x8080808080808080
U
L
#elif (SIZEOF_LONG == 4)
#elif (SIZEOF_LONG == 4)
# define UCS1_ASCII_CHAR_MASK 0x80808080L
# define UCS1_ASCII_CHAR_MASK 0x80808080
U
L
#else
#else
# error C 'long' size should be either 4 or 8!
# error C 'long' size should be either 4 or 8!
#endif
#endif
...
...
Objects/unicodeobject.c
View file @
01ac8b6a
...
@@ -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 0x8080808080808080
U
L
#elif (SIZEOF_LONG == 4)
#elif (SIZEOF_LONG == 4)
# define ASCII_CHAR_MASK 0x80808080L
# define ASCII_CHAR_MASK 0x80808080
U
L
#else
#else
# error C 'long' size should be either 4 or 8!
# error C 'long' size should be either 4 or 8!
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment