From f1e587b8f70cd53889039ed941956e210758d7ef Mon Sep 17 00:00:00 2001 From: salaheldinsoliman Date: Sun, 25 Aug 2024 13:20:19 +0200 Subject: [PATCH] fix: length is always 64 Signed-off-by: salaheldinsoliman --- src/emit/expression.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/emit/expression.rs b/src/emit/expression.rs index 0e22009db..696ecc928 100644 --- a/src/emit/expression.rs +++ b/src/emit/expression.rs @@ -137,9 +137,7 @@ pub(super) fn expression<'a, T: TargetRuntime<'a> + ?Sized>( bin.llvm_type(&Type::Bytes(bs.len() as u8), ns) .ptr_type(AddressSpace::default()) .into(), - bin.context - .custom_width_int_type(ns.value_length as u32) - .into(), + bin.context.i64_type().into(), ], false, ); @@ -148,7 +146,7 @@ pub(super) fn expression<'a, T: TargetRuntime<'a> + ?Sized>( .const_named_struct(&[ data.into(), bin.context - .custom_width_int_type(ns.value_length as u32) + .i64_type() .const_int(bs.len() as u64, false) .into(), ])