From 103fe6036252f211f3c68d7093ea0cbb76bcd210 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 18 Feb 2009 20:42:16 +0000 Subject: [PATCH] mem_free: fix a warning by converting pointer to mem_ptr_t instead of unsigned long --- src/core/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mem.c b/src/core/mem.c index 1e376b49..2ee5cfc7 100644 --- a/src/core/mem.c +++ b/src/core/mem.c @@ -586,7 +586,7 @@ mem_malloc(mem_size_t size) LWIP_ASSERT("mem_malloc: allocated memory not above ram_end.", (mem_ptr_t)mem + SIZEOF_STRUCT_MEM + size <= (mem_ptr_t)ram_end); LWIP_ASSERT("mem_malloc: allocated memory properly aligned.", - (unsigned long)((u8_t *)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0); + ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0); LWIP_ASSERT("mem_malloc: sanity check alignment", (((mem_ptr_t)mem) & (MEM_ALIGNMENT-1)) == 0);