Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib


Modified Files:
        main.c 


Log Message:


cast yet pointers. bad!

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/main.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- main.c      6 May 2007 11:29:37 -0000       1.16
+++ main.c      19 Aug 2007 13:15:45 -0000      1.17
@@ -329,7 +329,7 @@
    for (p = (Pool *)(pool->first); p; p = p->next) // look 4 pool
      {
        pmem = (void *)(((unsigned char *)p) + sizeof(Pool)); // pool mem base
-       if ((ptr >= pmem) && (ptr < (pmem + psize))) // is it in pool mem?
+       if ((ptr >= pmem) && ((unsigned char *)ptr < (((unsigned char *)pmem) + 
psize))) // is it in pool mem?
          {
             *((void **)ptr) = p->base; // freed node points to prev free node
             p->base = ptr; // next free node is now the one we freed



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to