From ebd5de992b19723dbca0d173de5e2bf94294cd0c Mon Sep 17 00:00:00 2001 From: joii2020 <87224197+joii2020@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:56:58 +0800 Subject: [PATCH] Fix Error on Ubuntu Arm (#123) --- src/high_level.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/high_level.rs b/src/high_level.rs index f585f81..de4f641 100644 --- a/src/high_level.rs +++ b/src/high_level.rs @@ -705,7 +705,7 @@ pub fn spawn_cell( let index = look_for_dep_with_hash2(code_hash, hash_type)?; let argc = argv.len(); let mut process_id: u64 = 0; - let argv_ptr: Vec<*const i8> = argv.iter().map(|e| e.as_ptr()).collect(); + let argv_ptr: Vec<*const i8> = argv.iter().map(|e| e.as_ptr() as *const i8).collect(); let mut spgs = syscalls::SpawnArgs { argc: argc as u64, argv: argv_ptr.as_ptr(),