summaryrefslogtreecommitdiff
path: root/dex2oat/common_compiler_driver_test.cc
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-09-21 14:18:11 -0700
committer Treehugger Robot <treehugger-gerrit@google.com> 2021-09-22 08:33:03 +0000
commit145f96954680bd24f2c8bbc63b9e199343ba0401 (patch)
tree7d6bb8b6ae8f2b20448503c43f4d0c9b77d8bda5 /dex2oat/common_compiler_driver_test.cc
parente684fc5975d448d761a2123a79f8be9d30089e15 (diff)
Use cpplint.py from repohooks
The cpplint.py in external/google-styleguide is out of date and doesn't support python 3. Switch to the one in tools/repohooks/tools to match the preupload configuration. Also fix some lint issues caught by the new version. Test: m cpplint-art Change-Id: Ie8c307388362c03c6f33cda6d4ec95c244481adf
Diffstat (limited to 'dex2oat/common_compiler_driver_test.cc')
-rw-r--r--dex2oat/common_compiler_driver_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dex2oat/common_compiler_driver_test.cc b/dex2oat/common_compiler_driver_test.cc
index 2007c5a970..7e71976729 100644
--- a/dex2oat/common_compiler_driver_test.cc
+++ b/dex2oat/common_compiler_driver_test.cc
@@ -67,7 +67,7 @@ void CommonCompilerDriverTest::ReserveImageSpace() {
MemMap::Init();
image_reservation_ = MemMap::MapAnonymous("image reservation",
reinterpret_cast<uint8_t*>(ART_BASE_ADDRESS),
- (size_t)120 * 1024 * 1024, // 120MB
+ static_cast<size_t>(120 * 1024 * 1024), // 120MB
PROT_NONE,
false /* no need for 4gb flag with fixed mmap */,
/*reuse=*/ false,