diff options
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index b23c81e78..5d075d7dd 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -3172,7 +3172,7 @@ irValue *ir_emit_call(irProcedure *p, irValue *value, Array<irValue *> const &ar } else if (!is_type_pointer(arg_type)) { array_add(&processed_args, ir_copy_value_to_ptr(p, args[i], original_type, 16)); } - } else if (is_type_integer(new_type)) { + } else if (is_type_integer(new_type) || is_type_float(new_type)) { array_add(&processed_args, ir_emit_transmute(p, args[i], new_type)); } else if (new_type == t_llvm_bool) { array_add(&processed_args, ir_emit_conv(p, args[i], new_type)); |