summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_allocator.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-05-16 13:24:31 +0000
committerKostya Serebryany <kcc@google.com>2013-05-16 13:24:31 +0000
commit8d6854a62ee044c19692a3a9e4870f57c30fc887 (patch)
tree34c8b809e3e9917f8c42dbe40b077c572b1fcf73 /lib/sanitizer_common/sanitizer_allocator.h
parentb76ea0ce262a97e39fbf443b6aa8768c2c27e7b7 (diff)
[sanitizer] fix gcc build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_allocator.h')
-rw-r--r--lib/sanitizer_common/sanitizer_allocator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_allocator.h b/lib/sanitizer_common/sanitizer_allocator.h
index 1e9de4496..0472edf27 100644
--- a/lib/sanitizer_common/sanitizer_allocator.h
+++ b/lib/sanitizer_common/sanitizer_allocator.h
@@ -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);