Skip to content

Commit

Permalink
Small fix in method writeFunction()
Browse files Browse the repository at this point in the history
  • Loading branch information
VipinindKumar committed Aug 29, 2017
1 parent 943f164 commit c0df980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ public void writeFunction(String funcName, String nLocals) {
out.newLine();
out.write("D = M");
out.newLine();
out.write("@" + funcName + "$END_LOOP");
out.write("@" + funcName.toUpperCase() + "$END_LOOP");
out.newLine();
out.write("D;JLE");
out.newLine();
Expand Down

0 comments on commit c0df980

Please sign in to comment.