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
a33d4e7d
Commit
a33d4e7d
authored
Sep 25, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix non-propagation of const qualifier to mutable subobjects
parent
8bcb7184
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+7
-4
No files found.
Cython/Compiler/Symtab.py
View file @
a33d4e7d
...
...
@@ -3268,10 +3268,13 @@ class CConstOrVolatileScope(Scope):
qual_alt
.
overloaded_alternatives
=
overloaded_alternatives
overloaded_alternatives
.
append
(
qual_alt
)
entry
.
overloaded_alternatives
=
overloaded_alternatives
elif
not
entry
.
is_mutable
or
self
.
is_volatile
:
entry
=
copy
.
copy
(
entry
)
entry
.
type
=
PyrexTypes
.
c_const_or_volatile_type
(
entry
.
type
,
self
.
is_const
,
self
.
is_volatile
)
else
:
is_const
=
self
.
is_const
and
not
entry
.
is_mutable
is_volatile
=
self
.
is_volatile
if
is_const
or
is_volatile
:
entry
=
copy
.
copy
(
entry
)
entry
.
type
=
PyrexTypes
.
c_const_or_volatile_type
(
entry
.
type
,
is_const
,
is_volatile
)
self
.
cached_const_or_volatile_entries
[
name
]
=
entry
return
entry
...
...
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