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
add0b074
Commit
add0b074
authored
Apr 14, 2010
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quick fix for bug introduced in commit 3d7f9142d2f0
parent
0844f356
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+2
-2
No files found.
Cython/Compiler/PyrexTypes.py
View file @
add0b074
...
@@ -805,7 +805,7 @@ class CIntType(CNumericType):
...
@@ -805,7 +805,7 @@ class CIntType(CNumericType):
self
.
from_py_function
=
self
.
get_from_py_type_conversion
()
self
.
from_py_function
=
self
.
get_from_py_type_conversion
()
def
get_to_py_type_conversion
(
self
):
def
get_to_py_type_conversion
(
self
):
if
self
.
rank
<
rank_to_type_name
.
index
(
'int'
):
if
self
.
rank
<
list
(
rank_to_type_name
)
.
index
(
'int'
):
# This assumes sizeof(short) < sizeof(int)
# This assumes sizeof(short) < sizeof(int)
return
"PyInt_FromLong"
return
"PyInt_FromLong"
else
:
else
:
...
@@ -816,7 +816,7 @@ class CIntType(CNumericType):
...
@@ -816,7 +816,7 @@ class CIntType(CNumericType):
if
not
self
.
signed
:
if
not
self
.
signed
:
Prefix
=
"Long"
Prefix
=
"Long"
SignWord
=
"Unsigned"
SignWord
=
"Unsigned"
if
self
.
rank
==
rank_to_type_name
.
index
(
'PY_LONG_LONG'
):
if
self
.
rank
>==
list
(
rank_to_type_name
)
.
index
(
'PY_LONG_LONG'
):
Prefix
=
"Long"
Prefix
=
"Long"
TypeName
=
"LongLong"
TypeName
=
"LongLong"
return
"Py%s_From%s%s"
%
(
Prefix
,
SignWord
,
TypeName
)
return
"Py%s_From%s%s"
%
(
Prefix
,
SignWord
,
TypeName
)
...
...
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