Skip to content

Commit cfb4c27

Browse files
committed
Fix C string char type to use portable type c_char.
1 parent 0750b30 commit cfb4c27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/runners/ash/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ use std::{
8383
borrow::Cow,
8484
collections::HashMap,
8585
ffi::{CStr, CString},
86+
os::raw::c_char,
8687
fs::File,
8788
sync::mpsc::{TryRecvError, TrySendError, sync_channel},
8889
thread,
@@ -313,7 +314,7 @@ impl RenderBase {
313314
} else {
314315
vec![]
315316
};
316-
let layers_names_raw: Vec<*const i8> = layer_names
317+
let layers_names_raw: Vec<*const c_char> = layer_names
317318
.iter()
318319
.map(|raw_name| raw_name.as_ptr())
319320
.collect();

0 commit comments

Comments
 (0)