Fix signed/unsigned warning

svn:r3736
This commit is contained in:
Nick Mathewson 2005-03-10 18:45:42 +00:00
parent 37a478bd78
commit aaf70df3bd

View File

@ -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);