From c88d644c45f7d7d54b82e7d3c21eb076cf06f1c6 Mon Sep 17 00:00:00 2001 From: Brice Videau Date: Thu, 19 Dec 2024 14:28:28 -0600 Subject: [PATCH] Fix C string char type to use portable type c_char. --- examples/runners/ash/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/runners/ash/src/main.rs b/examples/runners/ash/src/main.rs index 65a1704ebd..7a006574ca 100644 --- a/examples/runners/ash/src/main.rs +++ b/examples/runners/ash/src/main.rs @@ -84,6 +84,7 @@ use std::{ collections::HashMap, ffi::{CStr, CString}, fs::File, + os::raw::c_char, sync::mpsc::{TryRecvError, TrySendError, sync_channel}, thread, }; @@ -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();