Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
55cdc9f0
Commit
55cdc9f0
authored
May 17, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comment after changing code.
parent
f1e85caf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+1
-1
No files found.
Cython/Utility/Optimize.c
View file @
55cdc9f0
...
@@ -760,7 +760,7 @@ static CYTHON_INLINE {{c_ret_type}} __Pyx_PyInt_{{'' if ret_type.is_pyobject els
...
@@ -760,7 +760,7 @@ static CYTHON_INLINE {{c_ret_type}} __Pyx_PyInt_{{'' if ret_type.is_pyobject els
{{
for
_size
in
range
(
4
,
0
,
-
1
)}}
{{
for
_size
in
range
(
4
,
0
,
-
1
)}}
#if PyLong_SHIFT * {{_size}} < SIZEOF_LONG*8
#if PyLong_SHIFT * {{_size}} < SIZEOF_LONG*8
if
(
uintval
>>
(
PyLong_SHIFT
*
{{
_size
}}))
{
if
(
uintval
>>
(
PyLong_SHIFT
*
{{
_size
}}))
{
//
C integer value is between the maximum multiple digits that fit into a long completely and the maximum long value
//
The C integer value is between (PyLong_BASE ** _size) and MIN(PyLong_BASE ** _size, LONG_MAX).
unequal
=
(
size
!=
{{
_size
+
1
}})
||
(
digits
[
0
]
!=
(
uintval
&
(
unsigned
long
)
PyLong_MASK
))
unequal
=
(
size
!=
{{
_size
+
1
}})
||
(
digits
[
0
]
!=
(
uintval
&
(
unsigned
long
)
PyLong_MASK
))
{{
for
_i
in
range
(
1
,
_size
+
1
)}}
|
(
digits
[{{
_i
}}]
!=
((
uintval
>>
({{
_i
}}
*
PyLong_SHIFT
))
&
(
unsigned
long
)
PyLong_MASK
)){{
endfor
}};
{{
for
_i
in
range
(
1
,
_size
+
1
)}}
|
(
digits
[{{
_i
}}]
!=
((
uintval
>>
({{
_i
}}
*
PyLong_SHIFT
))
&
(
unsigned
long
)
PyLong_MASK
)){{
endfor
}};
}
else
}
else
...
...
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