Warning fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-04-25 20:24:35 +00:00
parent d56327cd06
commit 9a8ffaddeb
4 changed files with 4 additions and 4 deletions

View File

@@ -1009,7 +1009,7 @@ void ListBoxImpl::RegisterImage(int type, const char *xpm_data) {
// do we need to extend the mapping array? // do we need to extend the mapping array?
wxArrayInt& itm = *imgTypeMap; wxArrayInt& itm = *imgTypeMap;
if ( itm.GetCount() < type+1) if ( itm.GetCount() < (size_t)type+1)
itm.Add(-1, type - itm.GetCount() + 1); itm.Add(-1, type - itm.GetCount() + 1);
// Add an item that maps type to the image index // Add an item that maps type to the image index

View File

@@ -107,4 +107,4 @@ bool wxCheckListXmlHandler::CanHandle(wxXmlNode *node)
(m_insideBox && node->GetName() == wxT("item"))); (m_insideBox && node->GetName() == wxT("item")));
} }
#endif #endif

View File

@@ -1009,7 +1009,7 @@ void ListBoxImpl::RegisterImage(int type, const char *xpm_data) {
// do we need to extend the mapping array? // do we need to extend the mapping array?
wxArrayInt& itm = *imgTypeMap; wxArrayInt& itm = *imgTypeMap;
if ( itm.GetCount() < type+1) if ( itm.GetCount() < (size_t)type+1)
itm.Add(-1, type - itm.GetCount() + 1); itm.Add(-1, type - itm.GetCount() + 1);
// Add an item that maps type to the image index // Add an item that maps type to the image index

View File

@@ -107,4 +107,4 @@ bool wxCheckListXmlHandler::CanHandle(wxXmlNode *node)
(m_insideBox && node->GetName() == wxT("item"))); (m_insideBox && node->GetName() == wxT("item")));
} }
#endif #endif