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
Xavier Thompson
cython
Commits
edef846d
Commit
edef846d
authored
7 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix argument types in call to PyErr_WriteUnraisable()
parent
2e56693a
No related merge requests found
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 @
edef846d
...
@@ -593,7 +593,7 @@ static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyTypeObject *err, PyTypeObj
...
@@ -593,7 +593,7 @@ static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyTypeObject *err, PyTypeObj
res
=
exc_type1
?
PyObject_IsSubclass
((
PyObject
*
)
err
,
(
PyObject
*
)
exc_type1
)
:
0
;
res
=
exc_type1
?
PyObject_IsSubclass
((
PyObject
*
)
err
,
(
PyObject
*
)
exc_type1
)
:
0
;
// This function must not fail, so print the error here
// This function must not fail, so print the error here
if
(
unlikely
(
res
==
-
1
))
{
if
(
unlikely
(
res
==
-
1
))
{
PyErr_WriteUnraisable
(
err
);
PyErr_WriteUnraisable
(
(
PyObject
*
)
err
);
res
=
0
;
res
=
0
;
}
}
if
(
!
res
)
{
if
(
!
res
)
{
...
@@ -601,7 +601,7 @@ static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyTypeObject *err, PyTypeObj
...
@@ -601,7 +601,7 @@ static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyTypeObject *err, PyTypeObj
res
=
PyObject_IsSubclass
((
PyObject
*
)
err
,
(
PyObject
*
)
exc_type2
);
res
=
PyObject_IsSubclass
((
PyObject
*
)
err
,
(
PyObject
*
)
exc_type2
);
// This function must not fail, so print the error here
// This function must not fail, so print the error here
if
(
unlikely
(
res
==
-
1
))
{
if
(
unlikely
(
res
==
-
1
))
{
PyErr_WriteUnraisable
(
err
);
PyErr_WriteUnraisable
(
(
PyObject
*
)
err
);
res
=
0
;
res
=
0
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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