1.1 --- a/src/Chunk.cpp Sun Sep 20 15:14:12 2009 -0700
1.2 +++ b/src/Chunk.cpp Thu Sep 24 10:36:08 2009 -0700
1.3 @@ -37,13 +37,13 @@
1.4 }
1.5
1.6 size_t Chunk::writePadding (File *file) {
1.7 - int padding = file->position() & 0x03;
1.8 + off_t padding = file->position() & 0x03;
1.9 if (padding == 0)
1.10 return 0;
1.11 else {
1.12 padding = 4 - padding;
1.13 uint32_t zero = 0;
1.14 - Blob pad(&zero, padding);
1.15 + Blob pad(&zero, (size_t)padding);
1.16 return writeMultiple(file, kChunkTypePadding, &pad, 1);
1.17 }
1.18 }
1.19 @@ -103,7 +103,7 @@
1.20 ChunkIterator::ChunkIterator (File* file, FilePosition start)
1.21 :_file(file),
1.22 _pos(start),
1.23 - _length(_file->length()),
1.24 + _length((FilePosition)_file->length()),
1.25 _chunk(NULL)
1.26 {
1.27 _loadChunk();