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
c3790b3f
Commit
c3790b3f
authored
Oct 07, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash for qualified const or typedef cypclass
parent
ebac17d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+4
-4
No files found.
Cython/Compiler/PyrexTypes.py
View file @
c3790b3f
...
@@ -445,7 +445,7 @@ class CTypedefType(BaseType):
...
@@ -445,7 +445,7 @@ class CTypedefType(BaseType):
return
self
.
typedef_base_type
.
resolve
()
return
self
.
typedef_base_type
.
resolve
()
def
declaration_code
(
self
,
entity_code
,
def
declaration_code
(
self
,
entity_code
,
for_display
=
0
,
dll_linkage
=
None
,
pyrex
=
0
):
for_display
=
0
,
dll_linkage
=
None
,
pyrex
=
0
,
*
_unused_
):
if
pyrex
or
for_display
:
if
pyrex
or
for_display
:
base_code
=
self
.
typedef_name
base_code
=
self
.
typedef_name
else
:
else
:
...
@@ -1893,12 +1893,12 @@ class CConstOrVolatileType(BaseType):
...
@@ -1893,12 +1893,12 @@ class CConstOrVolatileType(BaseType):
return
self
.
declaration_code
(
""
,
for_display
=
1
)
return
self
.
declaration_code
(
""
,
for_display
=
1
)
def
declaration_code
(
self
,
entity_code
,
def
declaration_code
(
self
,
entity_code
,
for_display
=
0
,
dll_linkage
=
None
,
pyrex
=
0
):
for_display
=
0
,
dll_linkage
=
None
,
pyrex
=
0
,
*
args
):
cv
=
self
.
cv_string
()
cv
=
self
.
cv_string
()
if
for_display
or
pyrex
:
if
for_display
or
pyrex
:
return
cv
+
self
.
cv_base_type
.
declaration_code
(
entity_code
,
for_display
,
dll_linkage
,
pyrex
)
return
cv
+
self
.
cv_base_type
.
declaration_code
(
entity_code
,
for_display
,
dll_linkage
,
pyrex
,
*
args
)
else
:
else
:
return
self
.
cv_base_type
.
declaration_code
(
cv
+
entity_code
,
for_display
,
dll_linkage
,
pyrex
)
return
self
.
cv_base_type
.
declaration_code
(
cv
+
entity_code
,
for_display
,
dll_linkage
,
pyrex
,
*
args
)
def
specialize
(
self
,
values
):
def
specialize
(
self
,
values
):
base_type
=
self
.
cv_base_type
.
specialize
(
values
)
base_type
=
self
.
cv_base_type
.
specialize
(
values
)
...
...
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