aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Galloway <kgallowa@gcc.gnu.org>2007-03-12 20:15:25 +0000
committerKyle Galloway <kgallowa@gcc.gnu.org>2007-03-12 20:15:25 +0000
commit814bcb146bb5ac7662c6c9a8ea9253c89924325b (patch)
treee6e4dc0f5cbca052c31ab7c0bc44d4e95e7c1c9e
parentb389f63b057a9ab1a27fa6d0fd5bfae71b6b0818 (diff)
downloadgcc-814bcb146bb5ac7662c6c9a8ea9253c89924325b.zip
gcc-814bcb146bb5ac7662c6c9a8ea9253c89924325b.tar.gz
gcc-814bcb146bb5ac7662c6c9a8ea9253c89924325b.tar.bz2
jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count as a sigle slot.
2007-03-12 Kyle Galloway <kgallowa@redhat.com> * jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count as a sigle slot. From-SVN: r122864
-rw-r--r--libjava/jvmti.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/jvmti.cc b/libjava/jvmti.cc
index e9fa0a2..716e96a 100644
--- a/libjava/jvmti.cc
+++ b/libjava/jvmti.cc
@@ -1113,7 +1113,7 @@ _Jv_JVMTI_GetArgumentsSize (jvmtiEnv *env, jmethodID method, jint *size)
else if (sig[i] == 'J' || sig[i] == 'D')
{
// If this is an array of wide types it uses a single slot
- if (i > 0 && sig[i-1] == '[')
+ if (i > 0 && sig[i - 1] == '[')
num_slots++;
else
num_slots += 2;