]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/hashmap.h
On screens with restricted space, it's useful to be able to add controls
[wxWidgets.git] / include / wx / hashmap.h
index cbf9fec2637fc098f851fe7fda8d334d3eb68e91..14e5619e6a9563f72ccf3213214865f742785447 100644 (file)
@@ -640,7 +640,10 @@ public: \
  \
     /* count() == 0 | 1 */ \
     size_type count( const const_key_type& key ) \
  \
     /* 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)
 }
 
 #endif // !wxUSE_STL || !defined(HAVE_STL_HASH_MAP)