Update of /cvsroot/mahogany/M/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20196
Modified Files:
upgrade.cpp
Log Message:
fixed signed/unsigned comparison warning related to wxFile changes
Index: upgrade.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/util/upgrade.cpp,v
retrieving revision 1.221
retrieving revision 1.222
diff -b -u -2 -r1.221 -r1.222
--- upgrade.cpp 10 Nov 2004 22:03:48 -0000 1.221
+++ upgrade.cpp 16 Nov 2004 01:29:43 -0000 1.222
@@ -3913,6 +3913,7 @@
wxFile tmpfile(filename, wxFile::read);
wxChar * buffer = new wxChar [ tmpfile.Length() + 1];
- const size_t lenTmp = tmpfile.Length();
- if(tmpfile.Read(buffer, lenTmp) != lenTmp)
+ const wxFileOffset lenTmp = tmpfile.Length();
+ if (lenTmp == wxInvalidOffset ||
+ tmpfile.Read(buffer, lenTmp) != lenTmp)
{
wxLogError(_("Cannot read configuration info from temporary file\n"
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates