Skip to content

Commit

Permalink
fix #621
Browse files Browse the repository at this point in the history
  • Loading branch information
LingDong- committed Jul 22, 2020
1 parent 7172b0f commit 99dba35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.ts
Expand Up @@ -406,7 +406,7 @@ function tokens2asc(tokens: Token[], assert = defaultAssert()) {
x.lhs = tokens[i + 3];
x.rhs = tokens[i + 1];
}
if (gettok(i, 1) == "/" && gettok(i + 4, 0) == "mod") {
if (gettok(i, 1) == "/" && tokens[i + 4] && gettok(i + 4, 0) == "mod") {
x.op = "op%";
i += 5;
} else {
Expand Down

0 comments on commit 99dba35

Please sign in to comment.