Skip to content

Commit

Permalink
fix: length is always 64
Browse files Browse the repository at this point in the history
Signed-off-by: salaheldinsoliman <[email protected]>
  • Loading branch information
salaheldinsoliman committed Aug 25, 2024
1 parent 5b023d1 commit f1e587b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/emit/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand All @@ -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(),
])
Expand Down

0 comments on commit f1e587b

Please sign in to comment.