diff --git a/src/driver/instance.rs b/src/driver/instance.rs index 2974df4..37d68b3 100644 --- a/src/driver/instance.rs +++ b/src/driver/instance.rs @@ -155,7 +155,7 @@ impl Instance { .chain(unsafe { Self::extension_names(debug).into_iter() }) .collect::>(); let layer_names = Self::layer_names(debug); - let layer_names: Vec<*const i8> = layer_names + let layer_names: Vec<*const c_char> = layer_names .iter() .map(|raw_name| raw_name.as_ptr()) .collect(); diff --git a/src/driver/physical_device.rs b/src/driver/physical_device.rs index 1c3ddaf..f8b09f3 100644 --- a/src/driver/physical_device.rs +++ b/src/driver/physical_device.rs @@ -6,7 +6,7 @@ use { log::{debug, error}, std::{ collections::HashSet, - ffi::CStr, + ffi::{CStr, c_char}, fmt::{Debug, Formatter}, ops::Deref, }, @@ -14,7 +14,7 @@ use { // TODO: There is a bunch of unsafe cstr handling here - does not check for null-termination -fn vk_cstr_to_string_lossy(cstr: &[i8]) -> String { +fn vk_cstr_to_string_lossy(cstr: &[c_char]) -> String { unsafe { CStr::from_ptr(cstr.as_ptr()) } .to_string_lossy() .to_string()