forked from OSchip/llvm-project
OnDiskHashTable: Fix a think-o with offset_type
llvm-svn: 206672
This commit is contained in:
parent
05e0f1ccff
commit
4bc13f6b47
|
@ -146,7 +146,7 @@ public:
|
||||||
endian::Writer<little> LE(Out);
|
endian::Writer<little> LE(Out);
|
||||||
|
|
||||||
// Emit the payload of the table.
|
// 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];
|
Bucket &B = Buckets[I];
|
||||||
if (!B.Head)
|
if (!B.Head)
|
||||||
continue;
|
continue;
|
||||||
|
@ -179,7 +179,7 @@ public:
|
||||||
// Emit the hashtable itself.
|
// Emit the hashtable itself.
|
||||||
LE.write<offset_type>(NumBuckets);
|
LE.write<offset_type>(NumBuckets);
|
||||||
LE.write<offset_type>(NumEntries);
|
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);
|
LE.write<offset_type>(Buckets[I].Off);
|
||||||
|
|
||||||
return TableOff;
|
return TableOff;
|
||||||
|
|
Loading…
Reference in New Issue