Skip to content

Commit

Permalink
Fix type error for ARM64 platforms
Browse files Browse the repository at this point in the history
Changelog: fixed
  • Loading branch information
yorickpeterse committed Oct 14, 2023
1 parent 183e563 commit a0a9d24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rt/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ pub unsafe extern "system" fn inko_runtime_new(
let mut args = Vec::with_capacity(argc as usize);

if !argv.is_null() {
for ptr in slice::from_raw_parts(argv, argc as usize).iter().skip(1) {
for &ptr in slice::from_raw_parts(argv, argc as usize).iter().skip(1) {
if ptr.is_null() {
break;
}

args.push(CStr::from_ptr(*ptr).to_string_lossy().into_owned());
args.push(CStr::from_ptr(ptr as _).to_string_lossy().into_owned());
}
}

Expand Down

0 comments on commit a0a9d24

Please sign in to comment.