diff --git a/skeleton/glfw.cpp b/skeleton/glfw.cpp index ecc02b2..cfd3efd 100644 --- a/skeleton/glfw.cpp +++ b/skeleton/glfw.cpp @@ -152,7 +152,7 @@ keypress(GLFWwindow *window, int key, int scancode, int action, int mods) static void charinput(GLFWwindow *window, unsigned int c) { - EventHandler(CHARINPUT, (void*)c); + EventHandler(CHARINPUT, (void*)(uintptr)c); } static void diff --git a/skeleton/imgui/imgui_impl_rw.cpp b/skeleton/imgui/imgui_impl_rw.cpp index 19b9b15..9df1e26 100644 --- a/skeleton/imgui/imgui_impl_rw.cpp +++ b/skeleton/imgui/imgui_impl_rw.cpp @@ -192,7 +192,7 @@ ImGuiEventHandler(sk::Event e, void *param) io.KeysDown[c] = 0; return EVENTPROCESSED; case CHARINPUT: - c = (uint)param; + c = (uint)(uintptr)param; io.AddInputCharacter((unsigned short)c); return EVENTPROCESSED; case MOUSEMOVE: