Avoid compiler warnings.

This commit is contained in:
Markus F.X.J. Oberhumer
2007-02-08 15:00:42 +01:00
parent 52d89bd66b
commit 750c1a0f27
2 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -649,7 +649,7 @@ void PackMachFat::pack(OutputFile *fo)
unsigned const in_size = this->file_size;
fo->write(&fat_head, sizeof(fat_head.fat) +
fat_head.fat.nfat_arch * sizeof(fat_head.arch[0]));
unsigned length;
unsigned length = 0;
for (unsigned j=0; j < fat_head.fat.nfat_arch; ++j) {
unsigned base = fo->unset_extent(); // actual length
base += ~(~0u<<fat_head.arch[j].align) & -base; // align up