mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Use correct callconv for Str.toNum
This commit is contained in:
parent
3b60acb938
commit
032a8a892b
2 changed files with 1 additions and 4 deletions
|
@ -5347,7 +5347,7 @@ fn run_low_level<'a, 'ctx, 'env>(
|
|||
|
||||
let string = load_symbol(scope, &args[0]);
|
||||
|
||||
let result = call_bitcode_fn(env, &[string], intrinsic);
|
||||
let result = call_bitcode_fn_fixing_for_convention(env, &[string], layout, intrinsic);
|
||||
|
||||
// zig passes the result as a packed integer sometimes, instead of a struct. So we cast
|
||||
let expected_type = basic_type_from_layout(env, layout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue