aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-20 21:57:48 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-20 21:57:48 +0000
commit384a8ab777999c984509ad57d9d8ae859a0ed5c9 (patch)
tree51a20474f4d76edb21e50fdf9a0ee9ff704ef305
parent7521ef9a00e71b62bcdce199639e923dd284976b (diff)
downloadtor-384a8ab777999c984509ad57d9d8ae859a0ed5c9.tar.gz
tor-384a8ab777999c984509ad57d9d8ae859a0ed5c9.zip
r18267@catbus: nickm | 2008-02-20 16:57:45 -0500
Suppress signed/unsigned comparison warnings in buffers.c svn:r13624
-rw-r--r--src/or/buffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index f5c1b3ba3c..44f5ebac32 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -1021,7 +1021,7 @@ buf_find_pos_of_char(char ch, buf_pos_t *out)
int pos;
tor_assert(out);
if (out->chunk)
- tor_assert(out->pos < out->chunk->datalen);
+ tor_assert(out->pos < (off_t)out->chunk->datalen);
pos = out->pos;
for (chunk = out->chunk; chunk; chunk = chunk->next) {
char *cp = memchr(chunk->data+pos, ch, chunk->datalen-pos);
@@ -1043,7 +1043,7 @@ static INLINE int
buf_pos_inc(buf_pos_t *pos)
{
++pos->pos;
- if (pos->pos == pos->chunk->datalen) {
+ if (pos->pos == (off_t)pos->chunk->datalen) {
if (!pos->chunk->next)
return -1;
pos->chunk_pos += pos->chunk->datalen;