Mac-specific: Fix some warnings while compile under MacOS

This commit is contained in:
Abs62 2014-05-12 17:46:33 +04:00
parent d6a9244424
commit e2e4a6977c
2 changed files with 3 additions and 3 deletions

View file

@ -847,7 +847,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries(
{
QFileInfo info( FsEncoding::decode( i->c_str() ) );
if( info.size() > ULONG_MAX )
if( static_cast< quint64 >( info.size() ) > ULONG_MAX )
{
gdWarning( "File %s is too large\n", i->c_str() );
continue;

View file

@ -694,7 +694,7 @@ protected:
virtual qint64 readData( char * data, qint64 maxSize );
virtual bool atEnd();
virtual bool atEnd() const;
virtual qint64 writeData ( const char * /*data*/, qint64 /*maxSize*/ )
{ return -1; }
@ -717,7 +717,7 @@ GzippedFile::~GzippedFile()
dict_data_close( dz );
}
bool GzippedFile::atEnd()
bool GzippedFile::atEnd() const
{
return gzeof( gz );
}