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
Idan Horowitz
asm
Commits
af420f5b
Commit
af420f5b
authored
Apr 16, 2020
by
Idan Horowitz
Browse files
Shorts, Bytes, Chars and Booleans are int values
parent
ea53613f
Pipeline
#8339
failed with stage
in 3 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
asm-analysis/src/main/java/org/objectweb/asm/tree/analysis/BasicInterpreter.java
View file @
af420f5b
...
...
@@ -135,7 +135,7 @@ public class BasicInterpreter extends Interpreter<BasicValue> implements Opcodes
return
BasicValue
.
INT_VALUE
;
case
LDC:
Object
value
=
((
LdcInsnNode
)
insn
).
cst
;
if
(
value
instanceof
Integer
)
{
if
(
value
instanceof
Integer
||
value
instanceof
Short
||
value
instanceof
Byte
||
value
instanceof
Boolean
||
value
instanceof
Character
)
{
return
BasicValue
.
INT_VALUE
;
}
else
if
(
value
instanceof
Float
)
{
return
BasicValue
.
FLOAT_VALUE
;
...
...
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