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
379b2aca
Commit
379b2aca
authored
Sep 21, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not propagate constness to mutable subobjects
parent
e30da17d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+1
-1
No files found.
Cython/Compiler/Symtab.py
View file @
379b2aca
...
@@ -3253,7 +3253,7 @@ class CConstOrVolatileScope(Scope):
...
@@ -3253,7 +3253,7 @@ class CConstOrVolatileScope(Scope):
return
self
.
cached_const_or_volatile_entries
[
name
]
return
self
.
cached_const_or_volatile_entries
[
name
]
except
KeyError
:
except
KeyError
:
entry
=
self
.
base_type_scope
.
lookup_here
(
name
)
entry
=
self
.
base_type_scope
.
lookup_here
(
name
)
if
entry
is
not
None
and
not
entry
.
is_type
:
if
entry
is
not
None
and
not
entry
.
is_type
and
(
not
entry
.
is_mutable
or
self
.
is_volatile
)
:
entry
=
copy
.
copy
(
entry
)
entry
=
copy
.
copy
(
entry
)
entry
.
type
=
PyrexTypes
.
c_const_or_volatile_type
(
entry
.
type
=
PyrexTypes
.
c_const_or_volatile_type
(
entry
.
type
,
self
.
is_const
,
self
.
is_volatile
)
entry
.
type
,
self
.
is_const
,
self
.
is_volatile
)
...
...
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