List Info

Thread: Compile error on x86_64




Compile error on x86_64
user name
2008-02-27 09:27:08
Hello,

I keep running into this compile error:

/usr/kde/svn/include/kdevplatform/language/duchain/typesystem.h:457: error: cast from 'const KDevelop::AbstractType*' to 'uint' loses precision

To get around it, I have been adding a cast to (ulong) before the (uint) cast to make it compile.  My question: is this the proper way to fix this or should their be a macro defined for both architectures and then used in this case?

Thanks,
Andrew
RE: Compile error on x86_64
user name
2008-02-27 09:36:01
> I keep running into this compile error:

>
/usr/kde/svn/include/kdevplatform/language/duchain/typesyste
m.h:457:
> error: cast from 'const KDevelop::AbstractType*' to
'uint' loses
> precision

I thought these were fixed?  Can we define some sort of
generic pointer
hash function or POINTER_CAST macro that handles this
appropriately to use
in the future.  This seems to be a recurring issue.

Kris Wong

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )