Skip to content

Commit 686185b

Browse files
author
emmanue1
committed
Fix bug in identifying numeric constant types
1 parent ecf9843 commit 686185b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/jd/core/v1/service/converter/classfiletojavasyntax/visitor/UpdateIntegerConstantTypeVisitor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,12 @@ public void visit(BinaryOperatorExpression expression) {
144144
expression.setLeftExpression(updateExpression(rightType, left));
145145
right.accept(this);
146146
}
147+
break;
147148
} else if (rightType.isPrimitive()) {
148149
left.accept(this);
149150
expression.setRightExpression(updateExpression(leftType, right));
151+
break;
150152
}
151-
break;
152153
}
153154

154155
left.accept(this);

0 commit comments

Comments
 (0)