]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for longlongHash for architectures where sizeof(long long) == sizeof(long)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 1 Nov 2006 14:08:04 +0000 (14:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 1 Nov 2006 14:08:04 +0000 (14:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/hashmap.h

index abcd5c36c9af5aed6878df3c1ed3dddfb9c7a565..2b3d1e665f90f60984aca1f9d8a7a7638e981637 100644 (file)
@@ -467,8 +467,8 @@ class WXDLLIMPEXP_BASE wxIntegerHash
 #if defined wxLongLong_t && !defined wxLongLongIsLong
     size_t longlongHash( wxLongLong_t x ) const
     {
-        return longHash( wx_truncate_cast(long, x) ) ^
-               longHash( wx_truncate_cast(long, x >> (sizeof(long) * 8)) );
+        return longHash( wx_truncate_cast(wxUint32, x) ) ^
+               longHash( wx_truncate_cast(wxUint32, x >> (sizeof(wxUint32) * 8)) );
     }
 #endif