[PD-cvs] externals/mrpeach/net tcpsend.c,1.4,1.5
Martin Peach
mrpeach at users.sourceforge.net
Mon Jan 21 15:09:17 CET 2008
Update of /cvsroot/pure-data/externals/mrpeach/net
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14226
Modified Files:
tcpsend.c
Log Message:
Applied W.Ritsch's patch to fix sign error with input > 127
Index: tcpsend.c
===================================================================
RCS file: /cvsroot/pure-data/externals/mrpeach/net/tcpsend.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** tcpsend.c 20 Jun 2007 20:30:42 -0000 1.4
--- tcpsend.c 21 Jan 2008 14:09:14 -0000 1.5
***************
*** 114,131 ****
{
#define BYTE_BUF_LEN 65536 // arbitrary maximum similar to max IP packet size
! static char byte_buf[BYTE_BUF_LEN];
! int i, j, d;
! char c;
! float f, e;
! char *bp;
! int length, sent;
! int result;
! static double lastwarntime;
! static double pleasewarn;
! double timebefore;
! double timeafter;
! int late;
! char fpath[FILENAME_MAX];
! FILE *fptr;
#ifdef DEBUG
--- 114,132 ----
{
#define BYTE_BUF_LEN 65536 // arbitrary maximum similar to max IP packet size
! static char byte_buf[BYTE_BUF_LEN];
! int i, j;
! unsigned int d;
! unsigned char c;
! float f, e;
! char *bp;
! int length, sent;
! int result;
! static double lastwarntime;
! static double pleasewarn;
! double timebefore;
! double timeafter;
! int late;
! char fpath[FILENAME_MAX];
! FILE *fptr;
#ifdef DEBUG
***************
*** 138,142 ****
{
f = argv[i].a_w.w_float;
! d = (int)f;
e = f - d;
if (e != 0)
--- 139,143 ----
{
f = argv[i].a_w.w_float;
! d = (unsigned int)f;
e = f - d;
if (e != 0)
More information about the Pd-cvs
mailing list