From 12d16ad924836cad46419a0f7eb57e13363139ef Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 27 Feb 2014 13:42:09 +0000 Subject: Clean up MappingTable::FirstDexToPcPtr(). Use DecodeSignedLeb128() to skip over dex PCs. This is just to be consistent, the number of bytes skipped is the same as with DecodeUnsignedLeb128() and the result is ignored. Change-Id: Ib5198b0367030957a6e2c650200121c2d828c0a6 --- runtime/mapping_table.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/mapping_table.h') diff --git a/runtime/mapping_table.h b/runtime/mapping_table.h index a82bc1c..79e6e94 100644 --- a/runtime/mapping_table.h +++ b/runtime/mapping_table.h @@ -56,8 +56,8 @@ class MappingTable { // We must have dex to pc entries or else the loop will go beyond the end of the table. DCHECK_GT(total_size, pc_to_dex_size); for (uint32_t i = 0; i < pc_to_dex_size; ++i) { - DecodeUnsignedLeb128(&table); // Move ptr past native PC. - DecodeUnsignedLeb128(&table); // Move ptr past dex PC. + DecodeUnsignedLeb128(&table); // Move ptr past native PC delta. + DecodeSignedLeb128(&table); // Move ptr past dex PC delta. } } return table; -- cgit v1.1