mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Add explicit casts
For some reason these can no longer be inferred.
This commit is contained in:
parent
8d1d4e6df3
commit
d7a30966c1
5 changed files with 5 additions and 5 deletions
|
@ -1890,7 +1890,7 @@ fn build_tag<'a, 'ctx>(
|
|||
let roc_union =
|
||||
RocUnion::untagged_from_slices(layout_interner, env.context, &[other_fields]);
|
||||
|
||||
if tag_id == *nullable_id as _ {
|
||||
if tag_id == *nullable_id as u16 {
|
||||
let output_type = roc_union.struct_type().ptr_type(AddressSpace::default());
|
||||
|
||||
return output_type.const_null().into();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue