mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Fix another 32-bit warning in the spooling code
This commit is contained in:
parent
be778a65df
commit
fc02b8cf7a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user