Changeset 371 for trunk/util
- Timestamp:
- 07/22/08 10:58:10 (6 months ago)
- Files:
-
- 1 modified
-
trunk/util/ldid.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/util/ldid.cpp
r363 r371 499 499 sha1(hashes[i], top + 0x1000 * i, 0x1000); 500 500 if (pages != 0) 501 sha1(hashes[pages - 1], top + 0x1000 * (pages - 1), data % 0x1000);501 sha1(hashes[pages - 1], top + 0x1000 * (pages - 1), ((data - 1) % 0x1000) + 1); 502 502 } 503 503 } … … 554 554 sha1(hashes[i], top + 0x1000 * i, 0x1000); 555 555 if (pages != 0) 556 sha1(hashes[pages - 1], top + 0x1000 * (pages - 1), data % 0x1000);556 sha1(hashes[pages - 1], top + 0x1000 * (pages - 1), ((data - 1) % 0x1000) + 1); 557 557 558 558 directory->hashOffset = Swap(offset - begin);
