[llvm-commits] [compiler-rt] r160957 - /compiler-rt/trunk/lib/asan/asan_mac.cc
Alexey Samsonov
samsonov at google.com
Mon Jul 30 03:18:31 PDT 2012
Author: samsonov
Date: Mon Jul 30 05:18:31 2012
New Revision: 160957
URL: http://llvm.org/viewvc/llvm-project?rev=160957&view=rev
Log:
[ASan] fix cmake build warning
Modified:
compiler-rt/trunk/lib/asan/asan_mac.cc
Modified: compiler-rt/trunk/lib/asan/asan_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_mac.cc?rev=160957&r1=160956&r2=160957&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_mac.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_mac.cc Mon Jul 30 05:18:31 2012
@@ -56,7 +56,7 @@
int mib[2] = { CTL_KERN, KERN_OSRELEASE };
char version[100];
uptr len = 0, maxlen = sizeof(version) / sizeof(version[0]);
- for (int i = 0; i < maxlen; i++) version[i] = '\0';
+ for (uptr i = 0; i < maxlen; i++) version[i] = '\0';
// Get the version length.
CHECK(sysctl(mib, 2, 0, &len, 0, 0) != -1);
CHECK(len < maxlen);
More information about the llvm-commits
mailing list