[sanitizer] fix gcc build warnings
authorKostya Serebryany <kcc@google.com>
Fri, 15 Mar 2013 12:27:52 +0000 (12:27 +0000)
committerKostya Serebryany <kcc@google.com>
Fri, 15 Mar 2013 12:27:52 +0000 (12:27 +0000)
llvm-svn: 177149

compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc

index dedafa3..8d3a61c 100644 (file)
@@ -636,11 +636,11 @@ TEST(SanitizerCommon, LargeMmapAllocatorIteration) {
   AllocatorStats stats;
   stats.Init();
 
-  static const int kNumAllocs = 1000;
+  static const uptr kNumAllocs = 1000;
   char *allocated[kNumAllocs];
   static const uptr size = 40;
   // Allocate some.
-  for (int i = 0; i < kNumAllocs; i++) {
+  for (uptr i = 0; i < kNumAllocs; i++) {
     allocated[i] = (char *)a.Allocate(&stats, size, 1);
   }