mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
OnDiskHashTable: Fix a think-o with offset_type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -146,7 +146,7 @@ public:
|
||||
endian::Writer<little> LE(Out);
|
||||
|
||||
// Emit the payload of the table.
|
||||
for (size_t I = 0; I < NumBuckets; ++I) {
|
||||
for (offset_type I = 0; I < NumBuckets; ++I) {
|
||||
Bucket &B = Buckets[I];
|
||||
if (!B.Head)
|
||||
continue;
|
||||
@@ -179,7 +179,7 @@ public:
|
||||
// Emit the hashtable itself.
|
||||
LE.write<offset_type>(NumBuckets);
|
||||
LE.write<offset_type>(NumEntries);
|
||||
for (size_t I = 0; I < NumBuckets; ++I)
|
||||
for (offset_type I = 0; I < NumBuckets; ++I)
|
||||
LE.write<offset_type>(Buckets[I].Off);
|
||||
|
||||
return TableOff;
|
||||
|
Reference in New Issue
Block a user