From d81c0f8a7c8d6853edda01bceeae85ef831118fb Mon Sep 17 00:00:00 2001 From: David Sehr Date: Wed, 3 Aug 2016 09:05:20 -0700 Subject: [PATCH] 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 --- runtime/dex_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.11.0