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
1cbf6ba0
Commit
1cbf6ba0
authored
Aug 26, 2013
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 2.4 fix.
parent
3e5fc3ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+1
-0
Cython/Utility/ModuleSetupCode.c
Cython/Utility/ModuleSetupCode.c
+1
-1
No files found.
Cython/Compiler/ModuleNode.py
View file @
1cbf6ba0
...
...
@@ -592,6 +592,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
# These utility functions are assumed to exist and used elsewhere.
PyrexTypes
.
c_long_type
.
create_to_py_utility_code
(
env
)
PyrexTypes
.
c_long_type
.
create_from_py_utility_code
(
env
)
PyrexTypes
.
c_int_type
.
create_from_py_utility_code
(
env
)
code
.
put
(
Nodes
.
branch_prediction_macros
)
code
.
putln
(
''
)
...
...
Cython/Utility/ModuleSetupCode.c
View file @
1cbf6ba0
...
...
@@ -47,7 +47,7 @@
#define PY_FORMAT_SIZE_T ""
#define CYTHON_FORMAT_SSIZE_T ""
#define PyInt_FromSsize_t(z) PyInt_FromLong(z)
#define PyInt_AsSsize_t(o) __Pyx_PyInt_As
I
nt(o)
#define PyInt_AsSsize_t(o) __Pyx_PyInt_As
_i
nt(o)
#define PyNumber_Index(o) ((PyNumber_Check(o) && !PyFloat_Check(o)) ? PyNumber_Int(o) : \
(PyErr_Format(PyExc_TypeError, \
"expected index value, got %.200s", Py_TYPE(o)->tp_name), \
...
...
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