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
Boxiang Sun
cython
Commits
1a574df5
Commit
1a574df5
authored
Jan 29, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varargs tempification needs to be done for all varargs, not only Python objects
parent
473f0da8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+3
-3
No files found.
Cython/Compiler/ExprNodes.py
View file @
1a574df5
...
@@ -2990,7 +2990,7 @@ class SimpleCallNode(CallNode):
...
@@ -2990,7 +2990,7 @@ class SimpleCallNode(CallNode):
arg
=
arg
.
coerce_to_temp
(
env
)
arg
=
arg
.
coerce_to_temp
(
env
)
self
.
args
[
i
]
=
arg
self
.
args
[
i
]
=
arg
# handle additional varargs parameters
# handle additional varargs parameters
for
i
in
range
(
max_nargs
,
actual_nargs
):
for
i
in
x
range
(
max_nargs
,
actual_nargs
):
arg
=
self
.
args
[
i
]
arg
=
self
.
args
[
i
]
if
arg
.
type
.
is_pyobject
:
if
arg
.
type
.
is_pyobject
:
arg_ctype
=
arg
.
type
.
default_coerced_ctype
()
arg_ctype
=
arg
.
type
.
default_coerced_ctype
()
...
@@ -2999,8 +2999,8 @@ class SimpleCallNode(CallNode):
...
@@ -2999,8 +2999,8 @@ class SimpleCallNode(CallNode):
"Python object cannot be passed as a varargs parameter"
)
"Python object cannot be passed as a varargs parameter"
)
else
:
else
:
self
.
args
[
i
]
=
arg
=
arg
.
coerce_to
(
arg_ctype
,
env
)
self
.
args
[
i
]
=
arg
=
arg
.
coerce_to
(
arg_ctype
,
env
)
if
arg
.
is_temp
and
i
>
0
:
if
arg
.
is_temp
and
i
>
0
:
some_args_in_temps
=
True
some_args_in_temps
=
True
if
some_args_in_temps
:
if
some_args_in_temps
:
# if some args are temps and others are not, they may get
# if some args are temps and others are not, they may get
# constructed in the wrong order (temps first) => make
# constructed in the wrong order (temps first) => make
...
...
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