From 3dc807473bd6c1d7068e96dd5f9c20661bd202be Mon Sep 17 00:00:00 2001 From: ostrosco Date: Sun, 7 May 2017 00:07:51 -0600 Subject: [PATCH] - fixing discrepency in pointer type between ARM and other architectures --- src/input.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input.rs b/src/input.rs index e784398..06952db 100644 --- a/src/input.rs +++ b/src/input.rs @@ -152,7 +152,7 @@ impl<'ui, 'p> InputText<'ui, 'p> { pub fn build(self) -> bool { unsafe { imgui_sys::igInputText(self.label.as_ptr(), - self.buf.as_ptr() as *mut i8, + self.buf.as_ptr() as *mut _, self.buf.capacity_with_nul(), self.flags, None, diff --git a/src/lib.rs b/src/lib.rs index 14a6dd2..6a141a8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -235,7 +235,7 @@ impl ImGui { string.push(character); string.push('\0'); unsafe { - imgui_sys::ImGuiIO_AddInputCharactersUTF8(string.as_ptr() as *const i8); + imgui_sys::ImGuiIO_AddInputCharactersUTF8(string.as_ptr() as *const _); } } pub fn get_time(&self) -> f32 { unsafe { imgui_sys::igGetTime() } }