mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-16 07:58:33 +00:00
- fixing discrepency in pointer type between ARM and other architectures
This commit is contained in:
parent
ef9b4e2db8
commit
3dc807473b
@ -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,
|
||||
|
||||
@ -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() } }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user