commit d6f033b42dcb49cfe45cb61821f2f451e4004686 (tree)
parent 837166319dd1a5df14e5d4bebd62080bb6ebdaa1
Author: Jimmi Holst Christensen <jimmiholstchristensen@gmail.com>
Date: Sat, 28 Apr 2018 19:09:25 +0200
Fixed build error
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/analyze.cpp b/src/analyze.cpp
@@ -1264,7 +1264,7 @@ void init_fn_type_id(FnTypeId *fn_type_id, AstNode *proto_node, size_t param_cou
// We set param_info to 0, as param_info[i]->type is checked for null
// when checking if a parameters type has been resolved.
- memset(fn_type_id->param_info, 0, sizeof(fn_type_id->param_info[i]) * fn_type_id->param_count);
+ memset(fn_type_id->param_info, 0, sizeof(fn_type_id->param_info[0]) * fn_type_id->param_count);
}
static bool analyze_const_align(CodeGen *g, Scope *scope, AstNode *node, uint32_t *result) {