Changeset 31c6010 for python


Ignore:
Timestamp:
Aug 27, 2016, 1:51:45 AM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
30e080c
Parents:
a9a1e79
Message:

python/lib/gen_code.py: fix number of output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_code.py

    ra9a1e79 r31c6010  
    427427        if len(self.do_outputs) > 1:
    428428            out += """
    429     outputs = PyTuple_New(2);""".format(len(self.do_outputs))
     429    outputs = PyTuple_New({:d});""".format(len(self.do_outputs))
    430430            for i, p in enumerate(self.do_outputs):
    431431                out += """
Note: See TracChangeset for help on using the changeset viewer.