src/VersionDictionary.cpp
changeset 2 851de24ecb61
parent 0 31a43d94cc26
child 5 4c10b7956435
     1.1 --- a/src/VersionDictionary.cpp	Sun Sep 20 15:14:12 2009 -0700
     1.2 +++ b/src/VersionDictionary.cpp	Sun Sep 20 21:25:47 2009 -0700
     1.3 @@ -127,7 +127,7 @@
     1.4              off_t pos = _file->setPositionToEnd(sizeof(VersionDictionary::Trailer));
     1.5              if (pos < 0 || (pos & 0x03) || pos > UINT32_MAX)
     1.6                  throw File::Error(ERANGE, "No trailer found in file (wrong EOF)");
     1.7 -            trailerPos = pos;
     1.8 +            trailerPos = (FilePosition)pos;
     1.9          }
    1.10          
    1.11          // Read & verify trailer:
    1.12 @@ -201,7 +201,7 @@
    1.13          // Lock the file now, seek to the end, and make sure it's been prepared with a header,
    1.14          // since FilePositions of 0 and 1 are reserved.
    1.15          File::Lock lock(dstFile);
    1.16 -        const FilePosition startPos = dstFile->setPositionToEnd();
    1.17 +        const FilePosition startPos = (FilePosition) dstFile->setPositionToEnd();
    1.18          if (startPos <= 1)
    1.19              throw File::Error(ERANGE, "Cannot write VersionDictionary to empty file");
    1.20