summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2007-08-19 13:15:45 +0000
committerCarsten Haitzler <raster@rasterman.com>2007-08-19 13:15:45 +0000
commit3738c77586b807595b53d4ee1a138945132b12e5 (patch)
tree7fb39e4cbe318d6c915eab926fb88aa419b3357e /legacy
parent472401f3ce410b5ceed49a3b0bb1348042846f5d (diff)
cast yet pointers. bad!
SVN revision: 31398
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/evas/src/lib/main.c b/legacy/evas/src/lib/main.c
index cedada8b5f..01280b4f42 100644
--- a/legacy/evas/src/lib/main.c
+++ b/legacy/evas/src/lib/main.c
@@ -329,7 +329,7 @@ evas_mempool_free(Evas_Mempool *pool, void *ptr)
329 for (p = (Pool *)(pool->first); p; p = p->next) // look 4 pool 329 for (p = (Pool *)(pool->first); p; p = p->next) // look 4 pool
330 { 330 {
331 pmem = (void *)(((unsigned char *)p) + sizeof(Pool)); // pool mem base 331 pmem = (void *)(((unsigned char *)p) + sizeof(Pool)); // pool mem base
332 if ((ptr >= pmem) && (ptr < (pmem + psize))) // is it in pool mem? 332 if ((ptr >= pmem) && ((unsigned char *)ptr < (((unsigned char *)pmem) + psize))) // is it in pool mem?
333 { 333 {
334 *((void **)ptr) = p->base; // freed node points to prev free node 334 *((void **)ptr) = p->base; // freed node points to prev free node
335 p->base = ptr; // next free node is now the one we freed 335 p->base = ptr; // next free node is now the one we freed