Use correct callconv for Str.toNum

This commit is contained in:
Ayaz Hafiz 2022-07-10 13:42:38 -04:00
parent 3b60acb938
commit 032a8a892b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 1 additions and 4 deletions

View file

@ -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);