summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_quarantine.h
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-05-29 12:03:49 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-05-29 12:03:49 +0000
commite174cd1ee373c3b77f3ce8e7fc62f70d0668d03d (patch)
treea29cf1dfce17bb09463589a8f9fab89b000e448b /lib/sanitizer_common/sanitizer_quarantine.h
parente215980807069d7bdeb1beff8377b3fe7be33c5f (diff)
downloadcompiler-rt-e174cd1ee373c3b77f3ce8e7fc62f70d0668d03d.tar.gz
Fix MSVC warnings at the -W2 level
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_quarantine.h')
-rw-r--r--lib/sanitizer_common/sanitizer_quarantine.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_quarantine.h b/lib/sanitizer_common/sanitizer_quarantine.h
index 599d13645..b21ab23a7 100644
--- a/lib/sanitizer_common/sanitizer_quarantine.h
+++ b/lib/sanitizer_common/sanitizer_quarantine.h
@@ -147,7 +147,9 @@ class QuarantineCache {
return 0;
QuarantineBatch *b = list_.front();
list_.pop_front();
- SizeAdd(-b->size);
+ // FIXME: should probably add SizeSub method?
+ // See https://code.google.com/p/thread-sanitizer/issues/detail?id=20
+ SizeAdd(0 - b->size);
return b;
}