Skip to content

Commit

Permalink
Fix bug submitted via email
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx committed Sep 15, 2024
1 parent adade85 commit 290d877
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,7 @@ private static String mergeTypeEx(String a, String b) {
return b;
} else if (ta.fixed) {
if (ta != tb) {
if (as == 0) {
throw new RuntimeException();
}
return buildArray(as - 1, "L");
return buildArray(as == 0 ? 0 : as - 1, "L");
}
if (ta == TypeClass.INT) {
String chooseType = "I";
Expand Down Expand Up @@ -615,7 +612,7 @@ private static String mergeProviderType(String a, String b) {
} else if (ta.fixed) {
// special allow merge of Z and I
if ((ta == TypeClass.INT && tb == TypeClass.BOOLEAN)
|| (tb == TypeClass.INT && ta == TypeClass.BOOLEAN)) {
|| (tb == TypeClass.INT && ta == TypeClass.BOOLEAN)) {
return "I";
}
if (ta != tb) {
Expand Down

0 comments on commit 290d877

Please sign in to comment.