mem_free: fix a warning by converting pointer to mem_ptr_t instead of unsigned long

This commit is contained in:
goldsimon 2009-02-18 20:42:16 +00:00
parent 638020ec70
commit 103fe60362

View File

@ -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);