diff options
| author | gingerBill <bill@gingerbill.org> | 2021-05-31 20:56:07 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-05-31 20:56:07 +0100 |
| commit | bbc9c6a93c655a8bfef67c0f571134274c63580e (patch) | |
| tree | 59dc794ab22889b6ffe4986d1572ca630cae41de /src/llvm_backend.cpp | |
| parent | 673134185ab855703814732303c771def6c0c89d (diff) | |
Fix #999
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index dbc059d5f..687423c63 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -9819,7 +9819,7 @@ lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValue const &tv, lbValue x = lb_emit_conv(p, lb_build_expr(p, ce->args[0]), platform_type); lbValue y = lb_emit_conv(p, lb_build_expr(p, ce->args[1]), platform_type); - lbValue scale = lb_emit_conv(p, lb_build_expr(p, ce->args[2]), platform_type); + lbValue scale = lb_emit_conv(p, lb_build_expr(p, ce->args[2]), t_i32); char const *name = nullptr; if (is_type_unsigned(tv.type)) { |