Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jamie Mansfield
asm
Commits
9eb4da27
Commit
9eb4da27
authored
Jul 28, 2006
by
ebruneton
Browse files
fixed bug in visitLocalVariable (update max locals: 'L' was used instead of 'J' for 'long')
[[Split portion of a mixed commit.]]
parent
588b0c8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/objectweb/asm/MethodWriter.java
View file @
9eb4da27
...
...
@@ -1060,7 +1060,7 @@ class MethodWriter implements MethodVisitor {
if
(
computeMaxs
)
{
// updates max locals
char
c
=
desc
.
charAt
(
0
);
int
n
=
index
+
(
c
==
'L
'
||
c
==
'D'
?
2
:
1
);
int
n
=
index
+
(
c
==
'J
'
||
c
==
'D'
?
2
:
1
);
if
(
n
>
maxLocals
)
{
maxLocals
=
n
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment