[compiler-rt] r182006 - [sanitizer] fix gcc build

Kostya Serebryany kcc at google.com
Thu May 16 06:24:31 PDT 2013


Author: kcc
Date: Thu May 16 08:24:31 2013
New Revision: 182006

URL: http://llvm.org/viewvc/llvm-project?rev=182006&view=rev
Log:
[sanitizer] fix gcc build

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h?rev=182006&r1=182005&r2=182006&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h Thu May 16 08:24:31 2013
@@ -105,7 +105,7 @@ class SizeClassMap {
     void *batch[kMaxNumCached];
   };
 
-  static const uptr kMaxSize = 1 << kMaxSizeLog;
+  static const uptr kMaxSize = 1UL << kMaxSizeLog;
   static const uptr kNumClasses =
       kMidClass + ((kMaxSizeLog - kMidSizeLog) << S) + 1;
   COMPILER_CHECK(kNumClasses >= 32 && kNumClasses <= 256);





More information about the llvm-commits mailing list