From a5b09a67034e57a6e10231dd4bd92f4cb50b824c Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 17 Nov 2016 15:21:22 -0800 Subject: ART: Add dex::TypeIndex Add abstraction for uint16_t type index. Test: m test-art-host Change-Id: I47708741c7c579cbbe59ab723c1e31c5fe71f83a --- runtime/reflection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/reflection.cc') diff --git a/runtime/reflection.cc b/runtime/reflection.cc index 3128380f76..8446b525ad 100644 --- a/runtime/reflection.cc +++ b/runtime/reflection.cc @@ -363,7 +363,7 @@ static void CheckMethodArguments(JavaVMExt* vm, ArtMethod* m, uint32_t* args) Thread* const self = Thread::Current(); PointerSize pointer_size = Runtime::Current()->GetClassLinker()->GetImagePointerSize(); for (uint32_t i = 0; i < num_params; i++) { - uint16_t type_idx = params->GetTypeItem(i).type_idx_; + dex::TypeIndex type_idx = params->GetTypeItem(i).type_idx_; ObjPtr param_type(m->GetClassFromTypeIndex(type_idx, true /* resolve*/, pointer_size)); -- cgit v1.2.3-59-g8ed1b