fix signed/unsigned comparison warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,7 +120,7 @@ int wxColourDialog::ShowModal()
|
|||||||
CHOOSECOLOR chooseColorStruct;
|
CHOOSECOLOR chooseColorStruct;
|
||||||
memset(&chooseColorStruct, 0, sizeof(CHOOSECOLOR));
|
memset(&chooseColorStruct, 0, sizeof(CHOOSECOLOR));
|
||||||
|
|
||||||
int i;
|
size_t i;
|
||||||
|
|
||||||
// and transfer data from m_colourData to it
|
// and transfer data from m_colourData to it
|
||||||
COLORREF custColours[16];
|
COLORREF custColours[16];
|
||||||
|
@@ -793,7 +793,7 @@ bool wxMenu::MSWCommand(WXUINT WXUNUSED(param), WXWORD id_)
|
|||||||
const int id = (signed short)id_;
|
const int id = (signed short)id_;
|
||||||
|
|
||||||
// ignore commands from the menu title
|
// ignore commands from the menu title
|
||||||
if ( id != idMenuTitle )
|
if ( id != (int)idMenuTitle )
|
||||||
{
|
{
|
||||||
// update the check item when it's clicked
|
// update the check item when it's clicked
|
||||||
wxMenuItem * const item = FindItem(id);
|
wxMenuItem * const item = FindItem(id);
|
||||||
|
Reference in New Issue
Block a user