diff options
Diffstat (limited to 'src/microhttpd/memorypool.c')
-rw-r--r-- | src/microhttpd/memorypool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c index b6f9d63a..ab842b52 100644 --- a/src/microhttpd/memorypool.c +++ b/src/microhttpd/memorypool.c | |||
@@ -447,7 +447,7 @@ MHD_pool_reallocate (struct MemoryPool *pool, | |||
447 | 447 | ||
448 | if (NULL != old) | 448 | if (NULL != old) |
449 | { /* Have previously allocated data */ | 449 | { /* Have previously allocated data */ |
450 | const size_t old_offset = (uint8_t *) old - pool->memory; | 450 | const size_t old_offset = (size_t) (((uint8_t *) old) - pool->memory); |
451 | const bool shrinking = (old_size > new_size); | 451 | const bool shrinking = (old_size > new_size); |
452 | /* Try resizing in-place */ | 452 | /* Try resizing in-place */ |
453 | if (shrinking) | 453 | if (shrinking) |