projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9a1e79
)
python/lib/gen_code.py: fix number of output
author
Paul Brossier
<piem@piem.org>
Fri, 26 Aug 2016 23:51:45 +0000
(
01:51
+0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 26 Aug 2016 23:51:45 +0000
(
01:51
+0200)
python/lib/gen_code.py
patch
|
blob
|
history
diff --git
a/python/lib/gen_code.py
b/python/lib/gen_code.py
index
454f469
..
c075cc5
100644
(file)
--- a/
python/lib/gen_code.py
+++ b/
python/lib/gen_code.py
@@
-426,7
+426,7
@@
Py_{shortname}_do (Py_{shortname} * self, PyObject * args)
)
if len(self.do_outputs) > 1:
out += """
- outputs = PyTuple_New(
2
);""".format(len(self.do_outputs))
+ outputs = PyTuple_New(
{:d}
);""".format(len(self.do_outputs))
for i, p in enumerate(self.do_outputs):
out += """
PyTuple_SetItem( outputs, {i}, self->{p[name]});""".format(i = i, p = p)