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);
|