X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e74f12021dd10f2b6ae98d082f65b1209c8402be..88a6739128bcb9b5b68f0c2e74170ef62663b3a7:/utils/wxrc/wxrc.cpp diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index 3894c54a92..940913e555 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -581,7 +581,8 @@ static wxString FileToCppArray(wxString filename, int num) wxASSERT_MSG( offset >= 0 , wxT("Invalid file length") ); const size_t lng = wx_truncate_cast(size_t, offset); - wxASSERT_MSG( lng == offset, wxT("Huge file not supported") ); + wxASSERT_MSG( static_cast(lng) == offset, + wxT("Huge file not supported") ); snum.Printf(_T("%i"), num); output.Printf(_T("static size_t xml_res_size_") + snum + _T(" = %i;\n"), lng); @@ -734,7 +735,8 @@ static wxString FileToPythonArray(wxString filename, int num) wxASSERT_MSG( offset >= 0 , wxT("Invalid file length") ); const size_t lng = wx_truncate_cast(size_t, offset); - wxASSERT_MSG( offset == lng, wxT("Huge file not supported") ); + wxASSERT_MSG( static_cast(lng) == offset, + wxT("Huge file not supported") ); snum.Printf(_T("%i"), num); output = " xml_res_file_" + snum + " = '''\\\n";