summaryrefslogtreecommitdiffstats
path: root/tools/gfx/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/window.cpp')
-rw-r--r--tools/gfx/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/window.cpp b/tools/gfx/window.cpp
index d777dc8a6..8456e1ead 100644
--- a/tools/gfx/window.cpp
+++ b/tools/gfx/window.cpp
@@ -174,7 +174,7 @@ static LRESULT CALLBACK windowProc(
window = (Window*) createInfo->lpCreateParams;
window->handle = windowHandle;
- SetWindowLongPtrW(windowHandle, GWLP_USERDATA, (LONG)window);
+ SetWindowLongPtrW(windowHandle, GWLP_USERDATA, (LONG)size_t(window));
}
break;