diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-06-02 12:44:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-06-02 12:44:54 +0000 |
commit | 5b6d7f10f3e1748d8437720d001554abddaa0fd9 (patch) | |
tree | 2d3851802716e94af01283e4998babab7a5f427e /src/common/mempool.c | |
parent | 3431377d86e0891a41ce0882069c16f3f87d2142 (diff) | |
download | tor-5b6d7f10f3e1748d8437720d001554abddaa0fd9.tar.gz tor-5b6d7f10f3e1748d8437720d001554abddaa0fd9.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mempool.c b/src/common/mempool.c index c7c25098ce..f933f58440 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)) |