From 79911be1381234527f94548518da2cdcd74ac84a Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 12 Nov 2004 14:15:30 +0000 Subject: [PATCH] Warning fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/db/dbtest.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/samples/db/dbtest.cpp b/samples/db/dbtest.cpp index 38376a6e9b..2e0bcc003c 100644 --- a/samples/db/dbtest.cpp +++ b/samples/db/dbtest.cpp @@ -1707,17 +1707,15 @@ void CeditorDlg::OnSelectPict() if (file.IsOpened()) { - off_t iSize = file.Length(); + wxFileOffset iSize = file.Length(); if ((iSize > 0) && (iSize < MAX_PICTURE_SIZE)) { - off_t iReadSize = 0; - - wxGetApp().Contact->BlobSize = iSize; + wxGetApp().Contact->BlobSize = (size_t)iSize; memset(wxGetApp().Contact->Picture, 0, MAX_PICTURE_SIZE); - iReadSize = file.Read(wxGetApp().Contact->Picture, iSize); + wxFileOffset iReadSize = file.Read(wxGetApp().Contact->Picture, (size_t)iSize); if (iReadSize < iSize) wxMessageBox(wxT("Something bad happened while reading..."), wxT("BLOB Loading Error"), wxOK | wxICON_EXCLAMATION); -- 2.45.2