summaryrefslogtreecommitdiffstats
path: root/base/thread_local_posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/thread_local_posix.cc')
-rw-r--r--base/thread_local_posix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/thread_local_posix.cc b/base/thread_local_posix.cc
index 4c29263..2abfc0e 100644
--- a/base/thread_local_posix.cc
+++ b/base/thread_local_posix.cc
@@ -13,7 +13,7 @@ namespace base {
// static
void ThreadLocalPlatform::AllocateSlot(SlotType& slot) {
int error = pthread_key_create(&slot, NULL);
- CHECK(error == 0);
+ CHECK_EQ(error, 0);
}
// static
@@ -30,7 +30,7 @@ void* ThreadLocalPlatform::GetValueFromSlot(SlotType& slot) {
// static
void ThreadLocalPlatform::SetValueInSlot(SlotType& slot, void* value) {
int error = pthread_setspecific(slot, value);
- CHECK(error == 0);
+ CHECK_EQ(error, 0);
}
} // namespace base