libpurple/memorypool.c

changeset 35731
7a8d87b4e516
parent 35729
27c5683767c8
parent 35683
8b6b8a3b5039
child 35733
60a5d065ca81
equal deleted inserted replaced
35730:07185c85c64c 35731:7a8d87b4e516
135 priv->last_block->next = blk; 135 priv->last_block->next = blk;
136 priv->last_block = blk; 136 priv->last_block = blk;
137 } 137 }
138 138
139 mem = PURPLE_MEMORY_PADDED(blk->available_ptr, alignment); 139 mem = PURPLE_MEMORY_PADDED(blk->available_ptr, alignment);
140 g_assert(mem + size < blk->end_ptr); 140 g_assert((guintptr)mem + size < (guintptr)blk->end_ptr);
141 g_assert(mem >= blk->available_ptr); /* gpointer overflow */ 141 g_assert(mem >= blk->available_ptr); /* gpointer overflow */
142 } 142 }
143 143
144 g_assert(blk != NULL); 144 g_assert(blk != NULL);
145 g_assert(mem != NULL); 145 g_assert(mem != NULL);

mercurial