Skip to content

Commit 173f9a6

Browse files
committed
Use static cast
1 parent deddab0 commit 173f9a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/glfw-platform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DBG_EXPORT JS_METHOD(platformWindow) { NAPI_ENV; THIS_WINDOW;
3232
if (glfwGetPlatform() == GLFW_PLATFORM_WAYLAND) {
3333
RET_PTR(glfwGetWaylandWindow(window));
3434
} else {
35-
RET_PTR(glfwGetX11Window(window));
35+
RET_PTR(static_cast<int64_t>(glfwGetX11Window(window)));
3636
}
3737
#elif __APPLE__
3838
RET_PTR(glfwGetCocoaWindow(window));

0 commit comments

Comments
 (0)