Type casting warning fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-07-15 06:34:04 +00:00
parent 9d6eda5f3d
commit 5b7ab9385f
5 changed files with 29 additions and 28 deletions

View File

@@ -631,36 +631,36 @@ wxLayoutObjectCmd::Read(wxString &istr)
if(obj->m_StyleInfo->m_fg_valid)
{
int red, green, blue;
unsigned char red, green, blue;
ReadString(tmp, istr);
tmp.ToLong(&l);
red = (int) l;
red = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
green = (int) l;
green = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
blue = (int) l;
blue = (unsigned char) l;
obj->m_StyleInfo->m_fg = wxColour(red, green, blue);
}
if(obj->m_StyleInfo->m_bg_valid)
{
int red, green, blue;
unsigned char red, green, blue;
ReadString(tmp, istr);
tmp.ToLong(&l);
red = (int) l;
red = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
green = (int) l;
green = (unsigned char) l;
ReadString(tmp, istr);
tmp.ToLong(&l);
blue = (int) l;
blue = (unsigned char) l;
obj->m_StyleInfo->m_bg = wxColour(red, green, blue);
}