aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-28 17:25:58 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-28 17:25:58 +0200
commite5821148c6b469a48f536b4cd18f06fd5be20e1f (patch)
tree2ea1fe6b3285a4b8450821c070a6c31d67b2a7a7 /src/compiler.c
parent45ba8188d181c4b9316366f89fc955956c26e502 (diff)
Fix build issues in release mode
Diffstat (limited to 'src/compiler.c')
-rw-r--r--src/compiler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler.c b/src/compiler.c
index f9d9355..eac51ba 100644
--- a/src/compiler.c
+++ b/src/compiler.c
@@ -294,11 +294,11 @@ static CHECK_RESULT int thread_generate_bytecode(Parser *parser) {
}
static int thread_callback_generic(void *userdata) {
- int result;
+ int result = -1;
CompilerGenericThreadUserData *compiler_userdata = userdata;
switch(compiler_userdata->work_type) {
case THREAD_WORK_PARSE: {
- assert(bool_false && "Thread work type can't be 'parse' for generic work");
+ check(bool_false && "Thread work type can't be 'parse' for generic work");
break;
}
case THREAD_WORK_RESOLVE_AST: