[llvm] r206672 - OnDiskHashTable: Fix a think-o with offset_type

Justin Bogner mail at justinbogner.com
Fri Apr 18 16:50:08 PDT 2014


Author: bogner
Date: Fri Apr 18 18:50:07 2014
New Revision: 206672

URL: http://llvm.org/viewvc/llvm-project?rev=206672&view=rev
Log:
OnDiskHashTable: Fix a think-o with offset_type

Modified:
    llvm/trunk/include/llvm/Support/OnDiskHashTable.h

Modified: llvm/trunk/include/llvm/Support/OnDiskHashTable.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/OnDiskHashTable.h?rev=206672&r1=206671&r2=206672&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/OnDiskHashTable.h (original)
+++ llvm/trunk/include/llvm/Support/OnDiskHashTable.h Fri Apr 18 18:50:07 2014
@@ -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;





More information about the llvm-commits mailing list