From 84d00e6caa8302abafca8907a2404eadc920f6a8 Mon Sep 17 00:00:00 2001 From: Carl Shapiro Date: Thu, 18 Aug 2011 14:57:20 -0700 Subject: Fix a typo that breaks the arugment size computation. Change-Id: Id776dd6f546a04f157403d47cfa7311b77e8b589 --- src/object.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/object.cc b/src/object.cc index 21f3537444..8af17787b3 100644 --- a/src/object.cc +++ b/src/object.cc @@ -296,7 +296,7 @@ size_t Method::NumArgArrayBytes() { char ch = shorty[i]; if (ch == 'D' || ch == 'J') { num_bytes += 8; - } if (ch == 'L') { + } else if (ch == 'L') { // Argument is a reference or an array. The shorty descriptor // does not distinguish between these types. num_bytes += sizeof(Object*); -- cgit v1.2.3-59-g8ed1b