summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 9e2195141..02a083ef2 100644
--- a/tools/gfx/window.cpp
+++ b/tools/gfx/window.cpp
@@ -173,7 +173,7 @@ static LRESULT CALLBACK windowProc(
window = (Window*) createInfo->lpCreateParams;
window->handle = windowHandle;
- SetWindowLongPtrW(windowHandle, GWLP_USERDATA, (LONG)size_t(window));
+ SetWindowLongPtrW(windowHandle, GWLP_USERDATA, (LONG_PTR) window);
}
break;