Compile problem on x86_64
Dirk Reiners <[email protected]>
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
I had a little compile problem on x86_64, concerning pointer casts. I
have a tiny patch that makes it work for me.
Hope it's useful
Dirk
Index: objcache.cpp
===================================================================
RCS file: /cvsroot/doxygen/src/objcache.cpp,v
retrieving revision 1.1
diff -u -3 -p -r1.1 objcache.cpp
--- objcache.cpp 10 Sep 2006 20:46:22 -0000 1.1
+++ objcache.cpp 29 Sep 2006 21:45:49 -0000
@@ -179,7 +179,7 @@ unsigned int ObjCache::hash(void *addr)
// Thomas Wang's 32 bit Mix Function
- // TODO: what if sizeof(void*)!=4 ?
- unsigned int key = (unsigned int)addr;
+ unsigned int key = (unsigned int) (unsigned long) (addr);
key += ~(key << 15);
key ^= (key >> 10);
key += (key << 3);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV