[compiler-rt] r175284 - [ASan] make variable unsigned to silence the warning

Alexey Samsonov samsonov at google.com
Fri Feb 15 11:02:33 PST 2013


Author: samsonov
Date: Fri Feb 15 13:02:32 2013
New Revision: 175284

URL: http://llvm.org/viewvc/llvm-project?rev=175284&view=rev
Log:
[ASan] make variable unsigned to silence the 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=175284&r1=175283&r2=175284&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_mac.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_mac.cc Fri Feb 15 13:02:32 2013
@@ -133,7 +133,7 @@ void MaybeReexec() {
       const_cast<char*>(GetEnv(kDyldInsertLibraries));
   sptr old_env_len = dyld_insert_libraries ?
       internal_strlen(dyld_insert_libraries) : 0;
-  sptr fname_len = internal_strlen(info.dli_fname);
+  uptr fname_len = internal_strlen(info.dli_fname);
   if (!dyld_insert_libraries ||
       !REAL(strstr)(dyld_insert_libraries, info.dli_fname)) {
     // DYLD_INSERT_LIBRARIES is not set or does not contain the runtime





More information about the llvm-commits mailing list