Skip to content

Commit

Permalink
Use static cast
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Feb 24, 2025
1 parent deddab0 commit 173f9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/glfw-platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DBG_EXPORT JS_METHOD(platformWindow) { NAPI_ENV; THIS_WINDOW;
if (glfwGetPlatform() == GLFW_PLATFORM_WAYLAND) {
RET_PTR(glfwGetWaylandWindow(window));
} else {
RET_PTR(glfwGetX11Window(window));
RET_PTR(static_cast<int64_t>(glfwGetX11Window(window)));
}
#elif __APPLE__
RET_PTR(glfwGetCocoaWindow(window));
Expand Down

0 comments on commit 173f9a6

Please # to comment.