Skip to content

Commit e4e63cd

Browse files
committed
Fixed a bug where I forgot to increment the labelCounter so there were multiple instances of return labels resulting in an infinite loop
1 parent 145fdfa commit e4e63cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CodeWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ void writeCall(String functionName, int numArgs) {
580580
} catch (IOException e) {
581581
throw new RuntimeException(e);
582582
}
583+
labelCounter++; // increment the label counter for unique labels
583584
Debug.println("Wrote Call: " + functionName + " " + numArgs);
584585
}
585586

0 commit comments

Comments
 (0)