projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84a9b3f
)
really fix warning about implicitly converting 0 and 1 to size_t -- use explicit...
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 9 Apr 2006 22:47:46 +0000
(22:47 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 9 Apr 2006 22:47:46 +0000
(22:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38642
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
include/wx/hashmap.h
patch
|
blob
|
blame
|
history
diff --git
a/include/wx/hashmap.h
b/include/wx/hashmap.h
index cbf9fec2637fc098f851fe7fda8d334d3eb68e91..14e5619e6a9563f72ccf3213214865f742785447 100644
(file)
--- 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)