commit | 84d00e6caa8302abafca8907a2404eadc920f6a8 | [log] [tgz] |
---|---|---|
author | Carl Shapiro <cshapiro@google.com> | Thu Aug 18 14:57:20 2011 -0700 |
committer | Carl Shapiro <cshapiro@google.com> | Thu Aug 18 14:57:20 2011 -0700 |
tree | 205ef242e6d6c927bf42c0d17f9ee93bfeec046d | |
parent | 6c1a394b47c85c8d1723fc3b156a3b1b0b29a757 [diff] |
Fix a typo that breaks the arugment size computation. Change-Id: Id776dd6f546a04f157403d47cfa7311b77e8b589
diff --git a/src/object.cc b/src/object.cc index 21f3537..8af1778 100644 --- a/src/object.cc +++ b/src/object.cc
@@ -296,7 +296,7 @@ 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*);