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
25c614ea
Commit
25c614ea
authored
Mar 01, 2018
by
Jeroen Demeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declare variable at start of block
parent
449a48ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Cython/Utility/ExtensionTypes.c
Cython/Utility/ExtensionTypes.c
+2
-1
No files found.
Cython/Utility/ExtensionTypes.c
View file @
25c614ea
...
@@ -24,6 +24,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
...
@@ -24,6 +24,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
for
(
i
=
1
;
i
<
n
;
i
++
)
/* Skip first base */
for
(
i
=
1
;
i
<
n
;
i
++
)
/* Skip first base */
{
{
PyObject
*
b0
=
PyTuple_GET_ITEM
(
bases
,
i
);
PyObject
*
b0
=
PyTuple_GET_ITEM
(
bases
,
i
);
PyTypeObject
*
b
;
#if PY_MAJOR_VERSION < 3
#if PY_MAJOR_VERSION < 3
/* Disallow old-style classes */
/* Disallow old-style classes */
if
(
PyClass_Check
(
b0
))
if
(
PyClass_Check
(
b0
))
...
@@ -33,7 +34,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
...
@@ -33,7 +34,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
return
-
1
;
return
-
1
;
}
}
#endif
#endif
PyTypeObject
*
b
=
(
PyTypeObject
*
)
b0
;
b
=
(
PyTypeObject
*
)
b0
;
if
(
!
PyType_HasFeature
(
b
,
Py_TPFLAGS_HEAPTYPE
))
if
(
!
PyType_HasFeature
(
b
,
Py_TPFLAGS_HEAPTYPE
))
{
{
PyErr_Format
(
PyExc_TypeError
,
"base class '%.200s' is not a heap type"
,
PyErr_Format
(
PyExc_TypeError
,
"base class '%.200s' is not a heap type"
,
...
...
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