[compiler-rt] r177149 - [sanitizer] fix gcc build warnings
Kostya Serebryany
kcc at google.com
Fri Mar 15 05:27:52 PDT 2013
Author: kcc
Date: Fri Mar 15 07:27:52 2013
New Revision: 177149
URL: http://llvm.org/viewvc/llvm-project?rev=177149&view=rev
Log:
[sanitizer] fix gcc build warnings
Modified:
compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc?rev=177149&r1=177148&r2=177149&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc Fri Mar 15 07:27:52 2013
@@ -636,11 +636,11 @@ TEST(SanitizerCommon, LargeMmapAllocator
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);
}
More information about the llvm-commits
mailing list