aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-20 00:21:40 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-20 00:21:40 +0000
commit6d93aa429faba96415a7be135eb7296e69fb70a9 (patch)
tree4b0120f4161185545fbb0b3dca2329802285da5e /src/check_expr.c
parent3f023509a7184a9146853e23b189c1a079323143 (diff)
Fix issue #10
Diffstat (limited to 'src/check_expr.c')
-rw-r--r--src/check_expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_expr.c b/src/check_expr.c
index d708b40a4..4b26ca990 100644
--- a/src/check_expr.c
+++ b/src/check_expr.c
@@ -252,6 +252,7 @@ void check_assignment(Checker *c, Operand *operand, Type *type, String context_n
return;
}
target_type = default_type(operand->type);
+ GB_ASSERT(is_type_typed(target_type));
add_type_info_type(c, type);
add_type_info_type(c, target_type);
}