From: David Sehr Date: Wed, 3 Aug 2016 16:05:20 +0000 (-0700) Subject: Fix constant type X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d81c0f8a7c8d6853edda01bceeae85ef831118fb;p=android-x86%2Fart.git Fix constant type Remove the unnecessary cast to long for DCHECK, a nit that was omitted from the last CL, https://android-review.googlesource.com/#/c/248243/. Bug: b/28856653 Test: test-art-host-gtest-dex_file_test Change-Id: I8ca18d19cbac61e40ddfbe32729aef5c20347174 --- diff --git a/runtime/dex_file.cc b/runtime/dex_file.cc index dff28027f..a6eb5f626 100644 --- a/runtime/dex_file.cc +++ b/runtime/dex_file.cc @@ -441,7 +441,7 @@ std::unique_ptr DexFile::OpenMemory(const uint8_t* base, const OatDexFile* oat_dex_file, std::string* error_msg) { DCHECK(base != nullptr); - DCHECK_NE(size, 0UL); + DCHECK_NE(size, 0U); CHECK_ALIGNED(base, 4); // various dex file structures must be word aligned std::unique_ptr dex_file( new DexFile(base, size, location, location_checksum, mem_map, oat_dex_file));