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
b95b5789
Commit
b95b5789
authored
Feb 11, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix size_t conversions
parent
e4f6e4ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+5
-3
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+1
-1
No files found.
Cython/Compiler/Nodes.py
View file @
b95b5789
...
...
@@ -1725,9 +1725,11 @@ class DefNode(FuncDefNode):
(
arg
.
type
.
is_extension_type
or
arg
.
type
.
is_builtin_type
):
arg
.
needs_type_test
=
1
any_type_tests_needed
=
1
elif
arg
.
type
is
PyrexTypes
.
c_py_ssize_t_type
:
# Want to use __index__ rather than __int__ method
# that PyArg_ParseTupleAndKeywords calls
elif
(
arg
.
type
is
PyrexTypes
.
c_py_ssize_t_type
or
arg
.
type
is
PyrexTypes
.
c_size_t_type
):
# Don't use PyArg_ParseTupleAndKeywords's parsing
# Py_ssize_t: want to use __index__ rather than __int__
# size_t: no Python format char
arg
.
needs_conversion
=
1
arg
.
hdr_type
=
PyrexTypes
.
py_object_type
arg
.
hdr_cname
=
Naming
.
arg_prefix
+
arg
.
name
...
...
Cython/Compiler/PyrexTypes.py
View file @
b95b5789
...
...
@@ -1191,7 +1191,7 @@ c_slong_type = CIntType(3, 2, "T_LONG")
c_slonglong_type
=
CLongLongType
(
4
,
2
,
"T_LONGLONG"
)
c_py_ssize_t_type
=
CPySSizeTType
(
5
,
1
)
c_size_t_type
=
CSizeTType
(
6
,
1
)
c_size_t_type
=
CSizeTType
(
6
,
1
,
"(sizeof(size_t) == sizeof(unsigned long) ? T_ULONG : T_ULONGLONG)"
)
c_float_type
=
CFloatType
(
7
,
"T_FLOAT"
)
c_double_type
=
CFloatType
(
8
,
"T_DOUBLE"
)
...
...
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