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
449c3253
Commit
449c3253
authored
Jul 06, 2000
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some code that used 'short' to use 'long' instead.
parent
85cc4d89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Objects/unicodeobject.c
Objects/unicodeobject.c
+3
-3
No files found.
Objects/unicodeobject.c
View file @
449c3253
...
...
@@ -3049,7 +3049,7 @@ unicode_center(PyUnicodeObject *self, PyObject *args)
/* gleaned from: */
/* http://www-4.ibm.com/software/developer/library/utf16.html?dwzone=unicode */
static
unsigned
short
utf16Fixup
[
32
]
=
static
unsigned
long
utf16Fixup
[
32
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
...
...
@@ -3069,8 +3069,8 @@ unicode_compare(PyUnicodeObject *str1, PyUnicodeObject *str2)
len2
=
str2
->
length
;
while
(
len1
>
0
&&
len2
>
0
)
{
unsigned
short
c1
,
c2
;
/* 16 bits */
long
diff
;
/* >=32 bits */
unsigned
long
c1
,
c2
;
long
diff
;
c1
=
*
s1
++
;
c2
=
*
s2
++
;
...
...
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