From 4bc13f6b474e0534d0f791029d65f6846afac989 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Fri, 18 Apr 2014 23:50:07 +0000 Subject: [PATCH] OnDiskHashTable: Fix a think-o with offset_type llvm-svn: 206672 --- llvm/include/llvm/Support/OnDiskHashTable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Support/OnDiskHashTable.h b/llvm/include/llvm/Support/OnDiskHashTable.h index 94ed3ebc0020..289f7922f2a6 100644 --- a/llvm/include/llvm/Support/OnDiskHashTable.h +++ b/llvm/include/llvm/Support/OnDiskHashTable.h @@ -146,7 +146,7 @@ public: endian::Writer 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(NumBuckets); LE.write(NumEntries); - for (size_t I = 0; I < NumBuckets; ++I) + for (offset_type I = 0; I < NumBuckets; ++I) LE.write(Buckets[I].Off); return TableOff;