[PD-cvs] SF.net SVN: pure-data:[10341] trunk/externals/iem/iemmatrix/src/mtx_pack~.c

fzotter at users.sourceforge.net fzotter at users.sourceforge.net
Thu Oct 23 10:43:06 CEST 2008


Revision: 10341
          http://pure-data.svn.sourceforge.net/pure-data/?rev=10341&view=rev
Author:   fzotter
Date:     2008-10-23 08:43:06 +0000 (Thu, 23 Oct 2008)

Log Message:
-----------
corrected bug of mtx_pack~. won't crash anymore without creation argument.

Modified Paths:
--------------
    trunk/externals/iem/iemmatrix/src/mtx_pack~.c

Modified: trunk/externals/iem/iemmatrix/src/mtx_pack~.c
===================================================================
--- trunk/externals/iem/iemmatrix/src/mtx_pack~.c	2008-10-23 08:33:15 UTC (rev 10340)
+++ trunk/externals/iem/iemmatrix/src/mtx_pack~.c	2008-10-23 08:43:06 UTC (rev 10341)
@@ -17,7 +17,7 @@
    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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list