Skip to content

Commit

Permalink
Fix some compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
VipinindKumar committed Aug 22, 2017
1 parent 7edd91c commit 1f3795c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CodeWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public CodeWriter (String outFile) {
outFile = outFile.split(".vm")[0];
}
// sets file name
setFileName(outfile);
setFileName(outFile);

outFile = outFile + ".asm";

Expand All @@ -36,7 +36,7 @@ public CodeWriter (String outFile) {
// Informs the codeWriter that
// the translation of a new file has started
public void setFileName (String fileName) {
if (fileName.contains("/") {
if (fileName.contains("/")) {
String[] dir = fileName.split("/");
file = dir[dir.length - 1];
}
Expand Down

0 comments on commit 1f3795c

Please sign in to comment.