GCC fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-11-22 19:32:37 +00:00
parent 51e298bbbb
commit f0fb3b3b60
2 changed files with 6 additions and 5 deletions

View File

@@ -1707,7 +1707,8 @@ void CeditorDlg::OnSelectPict()
if (file.IsOpened())
{
wxFileOffset iSize = file.Length();
// assume not huge file in sample
long iSize = (long)file.Length();
if ((iSize > 0) && (iSize < MAX_PICTURE_SIZE))
{
@@ -1721,7 +1722,7 @@ void CeditorDlg::OnSelectPict()
wxMessageBox(wxT("Something bad happened while reading..."), wxT("BLOB Loading Error"), wxOK | wxICON_EXCLAMATION);
wxString tStr;
tStr.Printf(wxT("%lu"),iSize);
tStr.Printf(wxT("%ld"),iSize);
pPictSizeTxt->SetValue(tStr);
}
else