mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-23 12:02:28 +00:00
Fix confusion between isize and usize in mono code_gen_help
This commit is contained in:
parent
07b3c74713
commit
c27a152059
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ pub struct CodeGenHelp<'a> {
|
||||||
|
|
||||||
impl<'a> CodeGenHelp<'a> {
|
impl<'a> CodeGenHelp<'a> {
|
||||||
pub fn new(arena: &'a Bump, target_info: TargetInfo, home: ModuleId) -> Self {
|
pub fn new(arena: &'a Bump, target_info: TargetInfo, home: ModuleId) -> Self {
|
||||||
let layout_isize = Layout::usize(target_info);
|
let layout_isize = Layout::isize(target_info);
|
||||||
|
|
||||||
// Refcount is a boxed isize. TODO: use the new Box layout when dev backends support it
|
// Refcount is a boxed isize. TODO: use the new Box layout when dev backends support it
|
||||||
let union_refcount = UnionLayout::NonNullableUnwrapped(arena.alloc([layout_isize]));
|
let union_refcount = UnionLayout::NonNullableUnwrapped(arena.alloc([layout_isize]));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue