From 8f0d93fb12d7d227c6d715677b3063fb95685ea2 Mon Sep 17 00:00:00 2001 From: Kovarththanan Rajaratnam Date: Mon, 21 Sep 2009 14:01:30 +0000 Subject: [PATCH] Add unsigned int type cast svn path=/trunk/; revision=30037 --- epan/emem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/emem.c b/epan/emem.c index 4b367ac148..4fdb10ebcd 100644 --- a/epan/emem.c +++ b/epan/emem.c @@ -465,7 +465,7 @@ emem_alloc(size_t size, emem_header_t *mem, gboolean use_chunks, guint8 *canary) /* There's no padding/alignment involved (from our point of view) when * we fetch the memory directly from the system pool, so WYSIWYG */ npc->free_offset = npc->free_offset_init = 0; - npc->amount_free = npc->amount_free_init = size; + npc->amount_free = npc->amount_free_init = (unsigned int) size; } return buf;