Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
  • Loading branch information
fornwall and teoxoy authored Sep 1, 2023
1 parent b7d86e3 commit b07f755
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/front/type_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ impl crate::Module {
);
(vec_ty, size as u32 * width as u32)
} else {
(float_ty, 4)
(float_ty, width as u32)
};

let mut type_name = "__modf_result_".to_string();
Expand Down Expand Up @@ -416,14 +416,14 @@ impl crate::Module {
inner: crate::TypeInner::Vector {
size,
kind: crate::ScalarKind::Sint,
width: 4,
width,
},
},
Span::UNDEFINED,
);
(vec_float_ty, vec_int_ty, size as u32 * width as u32)
} else {
(float_ty, int_ty, 4)
(float_ty, int_ty, width as u32)
};

let mut type_name = "__frexp_result_".to_string();
Expand Down

0 comments on commit b07f755

Please sign in to comment.