summaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-11-14 03:45:48 +0000
committerNick Mathewson <nickm@torproject.org>2006-11-14 03:45:48 +0000
commitad1f019110435944bb5a29931a17b0bcb74e6db7 (patch)
tree2afe7fcd8d8fab74bb9ef31a461848e36bbe1f8c /src/or/buffers.c
parentd6cc235eba9496a51873c74bcfad25946340d3be (diff)
downloadtor-ad1f019110435944bb5a29931a17b0bcb74e6db7.tar.gz
tor-ad1f019110435944bb5a29931a17b0bcb74e6db7.zip
r9317@totoro: nickm | 2006-11-13 22:45:33 -0500
Fix some more mipspro warnings. Nothing should remain excecpt "conversion from pointer to same-sized integral type." svn:r8950
Diffstat (limited to 'src/or/buffers.c')
-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 b85b79cec8..154bfbbc8b 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -187,7 +187,7 @@ buf_resize(buf_t *buf, size_t new_capacity)
* to move the start portion back by that many bytes.
*/
memmove(buf->cur-(buf->len-new_capacity), buf->cur,
- buf->len-offset);
+ (size_t)(buf->len-offset));
offset -= (buf->len-new_capacity);
} else {
/* The data doesn't wrap around, but it does extend beyond the new
@@ -232,7 +232,7 @@ buf_resize(buf_t *buf, size_t new_capacity)
* end portion forward by that many bytes.
*/
memmove(buf->cur+(new_capacity-buf->len), buf->cur,
- buf->len-offset);
+ (size_t)(buf->len-offset));
buf->cur += new_capacity-buf->len;
}
buf->memsize = buf->len = new_capacity;