[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Fix signed/unsigned warning



Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv32307/src/or

Modified Files:
	buffers.c 
Log Message:
Fix signed/unsigned warning

Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/buffers.c,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- buffers.c	2 Mar 2005 20:22:10 -0000	1.128
+++ buffers.c	10 Mar 2005 18:45:42 -0000	1.129
@@ -716,7 +716,7 @@
       msglen = ntohs(get_uint16(cp));
       if (ntohs(get_uint16(cp+2) != CONTROL_CMD_FRAGMENT))
         return -1; /* Missing fragment message; error. */
-      if ((endp-cp) < 4+msglen)
+      if ((endp-cp) < (int)(4+msglen))
         return 0; /* Fragment not all here. */
       sofar += msglen;
       cp += (4+msglen);