diff --git a/src/interpreter/instructions/byte_arrays.rs b/src/interpreter/instructions/byte_arrays.rs index 1458bf5..fcc908b 100644 --- a/src/interpreter/instructions/byte_arrays.rs +++ b/src/interpreter/instructions/byte_arrays.rs @@ -39,7 +39,7 @@ executable_instruction!( let memory_view = memory.view(); if length == 0 { - runtime.stack.push(InterfaceValue::String("".into())); + runtime.stack.push(InterfaceValue::ByteArray(vec![])); return Ok(()) } diff --git a/src/interpreter/instructions/records.rs b/src/interpreter/instructions/records.rs index 5b12194..e7a116a 100644 --- a/src/interpreter/instructions/records.rs +++ b/src/interpreter/instructions/records.rs @@ -331,7 +331,9 @@ where } } + println!(" before transmuting: {:?}", result); let result = safe_transmute::transmute_to_bytes::(&result); + println!(" after transmuting: {:?}", result); let result_pointer = write_to_instance_mem(instance, instruction, &result)?; Ok(result_pointer)