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
225dec0a
Commit
225dec0a
authored
Jun 12, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code generation when overloaded cpp methods have different c names
parent
40c01a16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+3
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
225dec0a
...
@@ -7578,6 +7578,9 @@ class AttributeNode(ExprNode):
...
@@ -7578,6 +7578,9 @@ class AttributeNode(ExprNode):
if
obj
.
type
.
is_builtin_type
and
self
.
entry
and
self
.
entry
.
is_variable
:
if
obj
.
type
.
is_builtin_type
and
self
.
entry
and
self
.
entry
.
is_variable
:
# accessing a field of a builtin type, need to cast better than result_as() does
# accessing a field of a builtin type, need to cast better than result_as() does
obj_code
=
obj
.
type
.
cast_code
(
obj
.
result
(),
to_object_struct
=
True
)
obj_code
=
obj
.
type
.
cast_code
(
obj
.
result
(),
to_object_struct
=
True
)
if
obj
.
type
.
is_cpp_class
and
self
.
entry
and
self
.
entry
.
is_cfunction
:
# the entry might have been resolved to an overladed alternative in the meantime
self
.
member
=
self
.
entry
.
cname
if
obj
.
type
.
is_cyp_class
and
self
.
entry
and
self
.
entry
.
from_type
:
if
obj
.
type
.
is_cyp_class
and
self
.
entry
and
self
.
entry
.
from_type
:
self
.
member
=
"%s::%s"
%
(
self
.
entry
.
from_type
.
empty_declaration_code
(),
self
.
member
)
self
.
member
=
"%s::%s"
%
(
self
.
entry
.
from_type
.
empty_declaration_code
(),
self
.
member
)
return
"%s%s%s"
%
(
obj_code
,
self
.
op
,
self
.
member
)
return
"%s%s%s"
%
(
obj_code
,
self
.
op
,
self
.
member
)
...
...
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