aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-03-29 09:07:51 +0200
committerNick Mathewson <nickm@torproject.org>2017-03-29 09:07:51 +0200
commitfc02b8cf7ae3518791f1bed18494582c99b5a592 (patch)
tree47231bd07c7eca862bc32f5eaaa697757e32c0b7 /src/or/dirserv.c
parentbe778a65dfd85c34481af32fcfb0338522bacd1e (diff)
downloadtor-fc02b8cf7ae3518791f1bed18494582c99b5a592.tar.gz
tor-fc02b8cf7ae3518791f1bed18494582c99b5a592.zip
Fix another 32-bit warning in the spooling code
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 0e899a759c..70b0b22f25 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -3522,7 +3522,7 @@ spooled_resource_flush_some(spooled_resource_t *spooled,
remaining = cached->dir_z_len - spooled->cached_dir_offset;
if (BUG(remaining < 0))
return SRFS_ERR;
- ssize_t bytes = MIN(DIRSERV_CACHED_DIR_CHUNK_SIZE, remaining);
+ ssize_t bytes = (ssize_t) MIN(DIRSERV_CACHED_DIR_CHUNK_SIZE, remaining);
if (conn->zlib_state) {
connection_write_to_buf_zlib(cached->dir_z + spooled->cached_dir_offset,
bytes, conn, 0);