Update of /cvsroot/pure-data/externals/iem/iemmatrix/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16539
Modified Files: mtx_matrix.c Log Message: bug corrected: the new "size" command was crashing with uninitialized matrix.
Index: mtx_matrix.c =================================================================== RCS file: /cvsroot/pure-data/externals/iem/iemmatrix/src/mtx_matrix.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** mtx_matrix.c 9 Aug 2006 16:16:12 -0000 1.7 --- mtx_matrix.c 9 Aug 2006 20:00:28 -0000 1.8 *************** *** 166,174 **** void matrix_size(t_matrix *x, t_symbol *s, int argc, t_atom *argv) { ! int col, row, size=x->row*x->col;
switch(argc) { case 0: /* size */ ! outlet_list(x->x_obj.ob_outlet, gensym("size"), 2, x->atombuffer); break; case 1: --- 166,175 ---- void matrix_size(t_matrix *x, t_symbol *s, int argc, t_atom *argv) { ! int col, row;
switch(argc) { case 0: /* size */ ! if (x->row*x->col) ! outlet_list(x->x_obj.ob_outlet, gensym("size"), 2, x->atombuffer); break; case 1: