summaryrefslogtreecommitdiff
path: root/src/java_lang_System.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2011-10-17 15:34:11 -0700
committer Elliott Hughes <enh@google.com> 2011-10-17 15:34:11 -0700
commitcc607471d301e468ac0d84deacd1f60667331f67 (patch)
treef2a8818b996e2cfca2f27863da797ad57ae98bd8 /src/java_lang_System.cc
parent29405cfc691196c21325e80d9a9f3795026eff4e (diff)
Use CHECK_OP instead of CHECK where possible.
Change-Id: I2f12650e42bab057d0fd3b2978250306a6b264ab
Diffstat (limited to 'src/java_lang_System.cc')
-rw-r--r--src/java_lang_System.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java_lang_System.cc b/src/java_lang_System.cc
index 4a6e8db955..d8e8a5ac76 100644
--- a/src/java_lang_System.cc
+++ b/src/java_lang_System.cc
@@ -54,7 +54,7 @@ extern "C" void _memmove_words(void* dst, const void* src, size_t n);
#define move32 _memmove_words
#else
static void move16(void* dst, const void* src, size_t n) {
- DCHECK((((uintptr_t) dst | (uintptr_t) src | n) & 0x01) == 0);
+ DCHECK_EQ((((uintptr_t) dst | (uintptr_t) src | n) & 0x01), 0U);
uint16_t* d = reinterpret_cast<uint16_t*>(dst);
const uint16_t* s = reinterpret_cast<const uint16_t*>(src);
@@ -77,7 +77,7 @@ static void move16(void* dst, const void* src, size_t n) {
}
static void move32(void* dst, const void* src, size_t n) {
- DCHECK((((uintptr_t) dst | (uintptr_t) src | n) & 0x03) == 0);
+ DCHECK_EQ((((uintptr_t) dst | (uintptr_t) src | n) & 0x03), 0U);
uint32_t* d = reinterpret_cast<uint32_t*>(dst);
const uint32_t* s = reinterpret_cast<const uint32_t*>(src);