X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ed8c8dd1fe17ca76581ac387fe2e93a71af0617..87cf52d8ac2102b784679e68e764940e84f3b63d:/include/wx/hashmap.h?ds=sidebyside diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index cbf9fec263..14e5619e6a 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -640,7 +640,10 @@ public: \ \ /* count() == 0 | 1 */ \ size_type count( const const_key_type& key ) \ - { return GetNode( key ) ? 1u : 0u; } \ + { \ + /* explicit cast needed to suppress CodeWarrior warnings */ \ + return (size_type)(GetNode( key ) ? 1 : 0); \ + } \ } #endif // !wxUSE_STL || !defined(HAVE_STL_HASH_MAP)