aboutsummaryrefslogtreecommitdiff
path: root/src/common/mempool.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-06-02 12:44:54 +0000
committerNick Mathewson <nickm@torproject.org>2007-06-02 12:44:54 +0000
commit5b6d7f10f3e1748d8437720d001554abddaa0fd9 (patch)
tree2d3851802716e94af01283e4998babab7a5f427e /src/common/mempool.c
parent3431377d86e0891a41ce0882069c16f3f87d2142 (diff)
downloadtor-5b6d7f10f3e1748d8437720d001554abddaa0fd9.tar
tor-5b6d7f10f3e1748d8437720d001554abddaa0fd9.tar.gz
r13143@catbus: nickm | 2007-06-01 16:43:40 -0400
Try to fix some mipspro compiler warnings. There will still be some left. svn:r10444
Diffstat (limited to 'src/common/mempool.c')
-rw-r--r--src/common/mempool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mempool.c b/src/common/mempool.c
index c7c25098c..f933f5844 100644
--- a/src/common/mempool.c
+++ b/src/common/mempool.c
@@ -344,7 +344,7 @@ mp_pool_new(size_t item_size, size_t chunk_capacity)
/* First, we figure out how much space to allow per item. We'll want to
* use make sure we have enough for the overhead plus the item size. */
- alloc_size = STRUCT_OFFSET(mp_allocated_t, u.mem) + item_size;
+ alloc_size = (size_t)(STRUCT_OFFSET(mp_allocated_t, u.mem) + item_size);
/* If the item_size is less than sizeof(next_free), we need to make
* the allocation bigger. */
if (alloc_size < sizeof(mp_allocated_t))