From fc02b8cf7ae3518791f1bed18494582c99b5a592 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 29 Mar 2017 09:07:51 +0200 Subject: Fix another 32-bit warning in the spooling code --- src/or/dirserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/dirserv.c') 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); -- cgit v1.2.3-54-g00ecf