Skip to content

Commit

Permalink
emm
Browse files Browse the repository at this point in the history
  • Loading branch information
littlewhitecloud authored Dec 16, 2023
1 parent 5b31ecb commit 68ee905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/tokenize.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ static int read_indentation_level_for_newline_token(struct State *st)
consume_rest_of_line(st);
else if (c == '\0') {
// Ignore newline+spaces at end of file. Do not validate 4 spaces.
// TODO: test case
return 0;
} else {
unread_byte(st, c);
Expand Down
4 changes: 3 additions & 1 deletion src/typecheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ static const char *short_type_description(const Type *t)
return "a number type";
case TYPE_ARRAY:
return "an array type";
}
case TYPE_BOOL:
assert(0);
}
}

ExportSymbol *typecheck_stage1_create_types(FileTypes *ft, const AstFile *ast)
Expand Down

0 comments on commit 68ee905

Please sign in to comment.