From aaf70df3bd810f2cee9732a5ee14d37e2a35b9d0 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 10 Mar 2005 18:45:42 +0000 Subject: [PATCH] Fix signed/unsigned warning svn:r3736 --- src/or/buffers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/buffers.c b/src/or/buffers.c index c6a8d698be..92cac0030f 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -716,7 +716,7 @@ int fetch_from_buf_control(buf_t *buf, uint32_t *len_out, uint16_t *type_out, 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);