mirror of
https://github.com/ziglang/zig.git
synced 2026-01-24 16:25:25 +00:00
fix compiler test errors
closes #428 Thanks Marc Tiehuis for diagnosing this bug
This commit is contained in:
parent
0a922d3bca
commit
5dddb45ec7
@ -3951,6 +3951,7 @@ static void do_code_gen(CodeGen *g) {
|
||||
assert(const_val->special != ConstValSpecialRuntime);
|
||||
TypeTableEntry *var_type = g->builtin_types.entry_f128;
|
||||
ConstExprValue coerced_value;
|
||||
coerced_value.special = ConstValSpecialStatic;
|
||||
coerced_value.type = var_type;
|
||||
coerced_value.data.x_f128 = bigfloat_to_f128(&const_val->data.x_bigfloat);
|
||||
LLVMValueRef init_val = gen_const_val(g, &coerced_value);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user