]> git.treefish.org Git - phys/latlib.git/commitdiff
...
authorAlexander B. Schmidt <alex@treefish.org>
Sat, 3 Nov 2012 23:32:44 +0000 (00:32 +0100)
committerAlexander B. Schmidt <alex@treefish.org>
Sat, 3 Nov 2012 23:32:44 +0000 (00:32 +0100)
configcache.cpp

index af0a206eb6c73ea126b392395ad1472f0b4d882a..f00e187b26a339825256e09dde80257dda123b2f 100644 (file)
@@ -115,7 +115,7 @@ bool configcache::readConfig()
          std::streampos fsize = inFile.tellg();
           inFile.seekg( 0, std::ios::end );
           fsize = inFile.tellg() - fsize;
          std::streampos fsize = inFile.tellg();
           inFile.seekg( 0, std::ios::end );
           fsize = inFile.tellg() - fsize;
-         if( fsize == 0 ) {
+         if( (int)fsize == 0 ) {
            *out->log << "CCACHE: dat-file has zero length! Skipping." << endl << flush;
            inFile.close();
            continue;
            *out->log << "CCACHE: dat-file has zero length! Skipping." << endl << flush;
            inFile.close();
            continue;