From 06886a034edfeb228a52d50f1d5139aa0b158395 Mon Sep 17 00:00:00 2001 From: Francesca Plebani Date: Tue, 29 Jan 2019 14:07:12 -0500 Subject: [PATCH] Fix ARM build On ARM, c_char is unsigned. --- generator/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/src/lib.rs b/generator/src/lib.rs index e4407eb..08c1757 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -1335,7 +1335,7 @@ pub fn derive_debug(_struct: &vkxml::Struct, union_types: &HashSet<&str>) -> Opt let debug_value = if is_static_array(field) && field.basetype == "char" { quote! { &unsafe { - ::std::ffi::CStr::from_ptr(self.#param_ident.as_ptr() as *const i8) + ::std::ffi::CStr::from_ptr(self.#param_ident.as_ptr() as *const c_char) } } } else if param_ident.as_ref().contains("pfn") {