[PD-cvs] externals/iem/iemmatrix/src mtx_fill.c, 1.7, 1.8 mtx_find.c, 1.6, 1.7

Franz Zotter fzotter at users.sourceforge.net
Wed Aug 9 21:26:21 CEST 2006


Update of /cvsroot/pure-data/externals/iem/iemmatrix/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3185

Modified Files:
	mtx_fill.c mtx_find.c 
Log Message:
forgot to check in corrections:
mtx_fill didn't work correctly, a condition was wrong.
mtx_find didn't check each entry because of a wrong loop condition.


Index: mtx_fill.c
===================================================================
RCS file: /cvsroot/pure-data/externals/iem/iemmatrix/src/mtx_fill.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** mtx_fill.c	25 Jul 2006 14:15:22 -0000	1.7
--- mtx_fill.c	9 Aug 2006 19:26:19 -0000	1.8
***************
*** 297,301 ****
  	 break;
        case FILL_INDEXED_ELEMENTS:
! 	 if (list_size > mtx_fill_obj->index_size) {
  	    post("mtx_fill: fill matrix smaller than indexing vector");
  	    return;
--- 297,301 ----
  	 break;
        case FILL_INDEXED_ELEMENTS:
! 	 if (list_size < mtx_fill_obj->index_size) {
  	    post("mtx_fill: fill matrix smaller than indexing vector");
  	    return;

Index: mtx_find.c
===================================================================
RCS file: /cvsroot/pure-data/externals/iem/iemmatrix/src/mtx_find.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** mtx_find.c	25 Jul 2006 14:15:22 -0000	1.6
--- mtx_find.c	9 Aug 2006 19:26:19 -0000	1.7
***************
*** 135,139 ****
  {
     x += offset;
!    for (; offset > 0; offset-=step, x-=step) 
        if (atom_getfloat(x))
  	 return offset;
--- 135,139 ----
  {
     x += offset;
!    for (; offset >= 0; offset-=step, x-=step) 
        if (atom_getfloat(x))
  	 return offset;





More information about the Pd-cvs mailing list