From fae803f27be8ae1c4fe8f8775b333cc0fc80bdee Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 1 Nov 2006 14:08:04 +0000 Subject: [PATCH] fix for longlongHash for architectures where sizeof(long long) == sizeof(long) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/hashmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index abcd5c36c9..2b3d1e665f 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -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 -- 2.47.2