Skip to content

Commit 915c890

Browse files
committed
Update cvector.h, changed error string
1 parent 65f1644 commit 915c890

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cvector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
#if defined(CVEC_ONLY_INT) || defined(CVEC_ONLY_DOUBLE) || defined(CVEC_ONLY_STR) || defined(CVEC_ONLY_VOID)
3+
#if defined(CVEC_ONLY_INT) || defined(CVEC_ONLY_DOUBLE) || defined(CVEC_ONLY_STR) || defined(CVEC_ONLY_VOID)
44
#ifndef CVEC_ONLY_INT
55
#define CVEC_NO_INT
66
#endif

src/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ void return_stmt(parsing_state* p, program_state* prog)
12511251

12521252
if (peek_token(p, 0)->type != SEMICOLON) {
12531253
if (prog->func->ret_val.type == VOID_TYPE) {
1254-
parse_error(peek_token(p, 0), "return statement with an expression in a void returning function\n");
1254+
parse_error(peek_token(p, 0), "return statement with an expression in a function with void return type\n");
12551255
exit(0);
12561256
}
12571257
ret_stmt.exp = make_expression(prog);

0 commit comments

Comments
 (0)