From b07f755759d37cf8904ece5372b8bd8d225f357f Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 1 Sep 2023 23:55:47 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com> --- src/front/type_gen.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/front/type_gen.rs b/src/front/type_gen.rs index 0850b7d17b..0c608504c9 100644 --- a/src/front/type_gen.rs +++ b/src/front/type_gen.rs @@ -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(); @@ -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();