Merge pull request #50 from ostrosco/hotfix/arm-string-ptr

Changed string pointer casts to be inferred for cross-compiling to ARM.
This commit is contained in:
Joonas Javanainen 2017-05-07 10:02:02 +03:00 committed by GitHub
commit 02223d9e19
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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() } }