From b56af41bafa81c9afc100cc62fcedba1fc24ee4a Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Tue, 18 Mar 2014 11:17:01 +0000 Subject: Fix -Werror build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204139 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_addrhashmap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/sanitizer_common/sanitizer_addrhashmap.h') diff --git a/lib/sanitizer_common/sanitizer_addrhashmap.h b/lib/sanitizer_common/sanitizer_addrhashmap.h index d837a4cec..02af54974 100644 --- a/lib/sanitizer_common/sanitizer_addrhashmap.h +++ b/lib/sanitizer_common/sanitizer_addrhashmap.h @@ -133,7 +133,7 @@ void AddrHashMap::acquire(Handle *h) { Bucket *b = &table_[hash]; h->created_ = false; - h->addidx_ = -1; + h->addidx_ = -1U; h->bucket_ = b; h->cell_ = 0; @@ -272,7 +272,7 @@ void AddrHashMap::release(Handle *h) { atomic_store(&c->addr, 0, memory_order_release); // See if we need to compact the bucket. AddBucket *add = (AddBucket*)atomic_load(&b->add, memory_order_relaxed); - if (h->addidx_ == -1) { + if (h->addidx_ == -1U) { // Removed from embed array, move an add element into the freed cell. if (add) { uptr last = --add->size; @@ -293,7 +293,7 @@ void AddrHashMap::release(Handle *h) { b->mtx.Unlock(); } else { CHECK_EQ(addr1, h->addr_); - if (h->addidx_ != -1) + if (h->addidx_ != -1U) b->mtx.ReadUnlock(); } } -- cgit v1.2.3