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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
dc3d4708
Commit
dc3d4708
authored
Feb 24, 2012
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Py_ssize_t missing in Py2.4 for ext module C-API headers
parent
d6a7a3d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Utility/ModuleSetupCode.c
Cython/Utility/ModuleSetupCode.c
+2
-2
No files found.
Cython/Utility/ModuleSetupCode.c
View file @
dc3d4708
...
@@ -414,7 +414,7 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class
...
@@ -414,7 +414,7 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class
module_name
,
class_name
);
module_name
,
class_name
);
goto
bad
;
goto
bad
;
}
}
if
(
!
strict
&&
(
(
PyTypeObject
*
)
result
)
->
tp_basicsize
>
(
Py_ssize_t
)
size
)
{
if
(
!
strict
&&
(
size_t
)((
PyTypeObject
*
)
result
)
->
tp_basicsize
>
size
)
{
PyOS_snprintf
(
warning
,
sizeof
(
warning
),
PyOS_snprintf
(
warning
,
sizeof
(
warning
),
"%s.%s size changed, may indicate binary incompatibility"
,
"%s.%s size changed, may indicate binary incompatibility"
,
module_name
,
class_name
);
module_name
,
class_name
);
...
@@ -424,7 +424,7 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class
...
@@ -424,7 +424,7 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class
if
(
PyErr_WarnEx
(
NULL
,
warning
,
0
)
<
0
)
goto
bad
;
if
(
PyErr_WarnEx
(
NULL
,
warning
,
0
)
<
0
)
goto
bad
;
#endif
#endif
}
}
else
if
((
(
PyTypeObject
*
)
result
)
->
tp_basicsize
!=
(
Py_ssize_t
)
size
)
{
else
if
((
size_t
)((
PyTypeObject
*
)
result
)
->
tp_basicsize
!=
size
)
{
PyErr_Format
(
PyExc_ValueError
,
PyErr_Format
(
PyExc_ValueError
,
"%s.%s has the wrong size, try recompiling"
,
"%s.%s has the wrong size, try recompiling"
,
module_name
,
class_name
);
module_name
,
class_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