Skip to content

Commit

Permalink
Explictly pass Cint arguments
Browse files Browse the repository at this point in the history
Previously these were all Int64's, which would cause method errors since the
bindings strictly only allow Cint's.
  • Loading branch information
JamesWrigley committed Aug 15, 2023
1 parent eb855e8 commit d0a7a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function ImGui_ImplGlfw_DestroyWindow(viewport::Ptr{ImGuiViewport})
win = Ptr{GLFWwindow}(unsafe_load(data.Window))
for i = 0:length(ctx.KeyOwnerWindows)-1
if ctx.KeyOwnerWindows[i+1] == win
ImGui_ImplGlfw_KeyCallback(win, i, 0, GLFW_RELEASE, 0)
ImGui_ImplGlfw_KeyCallback(win, Cint(i), Cint(0), Cint(GLFW_RELEASE), Cint(0))
end
end
glfwDestroyWindow(win)
Expand Down

0 comments on commit d0a7a68

Please # to comment.