Merge #180
180: Fix build on ARM r=MaikKlein a=francesca64 `CStr::from_ptr` takes a `*const c_char`, which is not synonymous with `*const i8`. On ARM in particular, `c_char` is unsigned. Co-authored-by: Francesca Plebani <francesca@brainiumstudios.com>
This commit is contained in:
commit
6602522bb4
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue