fix logical error

This commit is contained in:
Folkert 2022-01-26 17:03:49 +01:00
parent b9c318e9fb
commit 0298013346
2 changed files with 3 additions and 3 deletions

View file

@ -256,8 +256,8 @@ fn block_of_memory_help(context: &Context, union_size: u32) -> BasicTypeEnum<'_>
/// The int type that the C ABI turns our RocList/RocStr into
pub fn str_list_int(ctx: &Context, target_info: TargetInfo) -> IntType<'_> {
match target_info.ptr_width() {
roc_target::PtrWidth::Bytes4 => ctx.i32_type(),
roc_target::PtrWidth::Bytes8 => ctx.i64_type(),
roc_target::PtrWidth::Bytes4 => ctx.i64_type(),
roc_target::PtrWidth::Bytes8 => ctx.i128_type(),
}
}