Skip to content

Commit

Permalink
fix bug; not changing inFunction after return
Browse files Browse the repository at this point in the history
  • Loading branch information
VipinindKumar committed Aug 29, 2017
1 parent 3ca4678 commit 1b72143
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions CodeWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,6 @@ private void pushToStack() {

// Write Assembly code for the return command
public void writeReturn() {
// set inFunction to an empty string
inFunction = "";

try {
writeComment("return");

Expand Down

0 comments on commit 1b72143

Please sign in to comment.