Add explicit casts

For some reason these can no longer be inferred.
This commit is contained in:
Ayaz Hafiz 2023-07-16 12:51:46 -05:00
parent 8d1d4e6df3
commit d7a30966c1
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 5 additions and 5 deletions

View file

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

View file

@ -800,7 +800,7 @@ fn build_clone_tag_help<'a, 'ctx>(
let mut cases = Vec::with_capacity_in(other_tags.len(), env.arena);
for i in 0..other_tags.len() + 1 {
if i == nullable_id as _ {
if i == nullable_id as usize {
continue;
}