diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-04 14:16:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-04 14:16:49 +0900 |
| commit | 1cfd20bbd29c88284aa6c2fa48c04588ae1c9b78 (patch) | |
| tree | c6ee37b6d753a46f1595df1ad313a70ac39e4c18 /main.c | |
| parent | 341479280d6fd8253b6561817e2b5a91d268c427 (diff) | |
| download | P4Dcc-1cfd20bbd29c88284aa6c2fa48c04588ae1c9b78.tar.gz P4Dcc-1cfd20bbd29c88284aa6c2fa48c04588ae1c9b78.tar.zst P4Dcc-1cfd20bbd29c88284aa6c2fa48c04588ae1c9b78.zip | |
fix an issue where parse_param returns nothing
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -737,6 +737,7 @@ AST* parse_param(PARSER* p) { AST* param = ast_new(AST_PARAM); param->var_ty = type_new(TY_INT); param->name = name; + return param; } else { fatal_error("parse_param: expect type"); } |
