aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFranz Zotter <fzotter@users.sourceforge.net>2008-10-23 08:43:06 +0000
committerFranz Zotter <fzotter@users.sourceforge.net>2008-10-23 08:43:06 +0000
commit8b38d417ddfb788bfff9d8afa214860394cf7696 (patch)
tree2ab79d3df68af5a9e2e49e7043dadbce26fbc7c7 /src
parent43720f34cf581a11a23b12d13c23a2a82ddbcdb8 (diff)
corrected bug of mtx_pack~. won't crash anymore without creation argument.
svn path=/trunk/externals/iem/iemmatrix/; revision=10341
Diffstat (limited to 'src')
-rw-r--r--src/mtx_pack~.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mtx_pack~.c b/src/mtx_pack~.c
index 8afe3a2..3c2e9f6 100644
--- a/src/mtx_pack~.c
+++ b/src/mtx_pack~.c
@@ -17,7 +17,7 @@ void *newMtxPackTilde (t_floatarg f)
int num_chan=1;
mtx_pack_tilde *x = (mtx_pack_tilde*) pd_new(mtx_pack_tilde_class);
num_chan=(int)f;
- if ((num_chan<0) || (num_chan>MTX_PACK_MAXCHANNELS)) {
+ if ((num_chan<1) || (num_chan>MTX_PACK_MAXCHANNELS)) {
num_chan=1;
}
x->num_chan=num_chan;