Skip to content

Commit

Permalink
Fix C string char type to use portable type c_char.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerilk committed Dec 22, 2024
1 parent 0750b30 commit c88d644
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/runners/ash/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ use std::{
collections::HashMap,
ffi::{CStr, CString},
fs::File,
os::raw::c_char,
sync::mpsc::{TryRecvError, TrySendError, sync_channel},
thread,
};
Expand Down Expand Up @@ -313,7 +314,7 @@ impl RenderBase {
} else {
vec![]
};
let layers_names_raw: Vec<*const i8> = layer_names
let layers_names_raw: Vec<*const c_char> = layer_names
.iter()
.map(|raw_name| raw_name.as_ptr())
.collect();
Expand Down

0 comments on commit c88d644

Please sign in to comment.