summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2012-06-22 13:05:45 +0800
committer Shih-wei Liao <sliao@google.com> 2012-06-21 23:38:39 -0700
commit8b0c81613688b5091c22a02d4c881376a0509a1c (patch)
tree501a68ed12286e79caaad4d105663c26a68c6ea2 /src
parent0399dde18753aa9bd2bd0d7cf60beef154d164a4 (diff)
Fix build: Don't compare unsigned int with signed int.
Change-Id: Iad3d2a9aa30c647a3b847b162a1692287dad83e9
Diffstat (limited to 'src')
-rw-r--r--src/oat_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oat_file.cc b/src/oat_file.cc
index 7762825d96..e97e70cf0b 100644
--- a/src/oat_file.cc
+++ b/src/oat_file.cc
@@ -188,7 +188,7 @@ bool OatFile::Map(File& file,
#else
oat = map->Begin() + oat_header.GetElfImageTableOffset();
- CHECK_EQ((reinterpret_cast<uintptr_t>(oat) & 0x3), 0);
+ CHECK_EQ((reinterpret_cast<uintptr_t>(oat) & 0x3), 0u);
for (uint32_t i = 0, end = oat_header.GetElfImageCount(); i < end; ++i) {
uint32_t elf_offset = *reinterpret_cast<const uint32_t*>(oat);