[PD-cvs] externals/mrpeach/net udpreceive.c,1.2,1.3

Martin Peach mrpeach at users.sourceforge.net
Mon Dec 4 21:17:05 CET 2006


Update of /cvsroot/pure-data/externals/mrpeach/net
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3342

Modified Files:
	udpreceive.c 
Log Message:
make sure bytes >127 are not interpreted as negative.


Index: udpreceive.c
===================================================================
RCS file: /cvsroot/pure-data/externals/mrpeach/net/udpreceive.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** udpreceive.c	7 Nov 2006 21:21:36 -0000	1.2
--- udpreceive.c	4 Dec 2006 20:17:03 -0000	1.3
***************
*** 73,77 ****
          {
              /* convert the bytes in the buffer to floats in a list */
!             x->x_msgoutbuf[i].a_w.w_float = (float)x->x_msginbuf[i];
          }
          /* send the list out the outlet */
--- 73,77 ----
          {
              /* convert the bytes in the buffer to floats in a list */
!             x->x_msgoutbuf[i].a_w.w_float = (float)(unsigned char)x->x_msginbuf[i];
          }
          /* send the list out the outlet */





More information about the Pd-cvs mailing list