On Sat, 11 Dec 2010 08:19:33 +0100 (CET) Vincent Torri <[email protected]>
said:

actually.. why does it have to get casted TWICE? just casting once to void *
should be enough. it will promote to 64bit pointers or do whatever is needed to
simply stuff exactly those bits from the magic val into a pointer.

> 
> 
> On Sat, 11 Dec 2010, Vincent Torri wrote:
> 
> >
> >
> > On Sat, 11 Dec 2010, Vincent Torri wrote:
> >
> >> 
> >> 
> >> On Fri, 10 Dec 2010, Enlightenment SVN wrote:
> >> 
> >>> Log:
> >>> revert part of commit - broke compilation. no uintptr_t in linux
> >>>  yeaders by default - likely breaks even more.
> >> 
> >> then just include the correct header. uintptr_t is a C99 type.
> >
> > stdint.h I think
> 
> like that
> 
> Index: eina_magic.c
> ===================================================================
> --- eina_magic.c      (revision 55485)
> +++ eina_magic.c      (working copy)
> @@ -22,6 +22,9 @@
> 
>   #include <stdlib.h>
>   #include <string.h>
> +#ifndef _MSC_VER
> +# include <stdint.h>
> +#endif
> 
>   #ifdef HAVE_EVIL
>   # include <Evil.h>
> @@ -320,7 +323,7 @@
>           _eina_magic_strings_dirty = 0;
>        }
> 
> -   ems = bsearch((void *)(long)magic, _eina_magic_strings,
> +   ems = bsearch((void *)(uintptr_t)magic, _eina_magic_strings,
>                    _eina_magic_strings_count, sizeof(Eina_Magic_String),
>                    _eina_magic_strings_find_cmp);
>      if (ems)
> 
> ------------------------------------------------------------------------------
> Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
> new data types, scalar functions, improved concurrency, built-in packages, 
> OCI, SQL*Plus, data movement tools, best practices and more.
> http://p.sf.net/sfu/oracle-sfdev2dev 
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to