From 505556a1c7c8fa4015adcdf0f6b689622f17cc8e Mon Sep 17 00:00:00 2001 From: SteveMcNeill Date: Wed, 17 Oct 2018 17:14:19 -0400 Subject: [PATCH] Change for 64-bit compatability change so that the windowhandle will return a 64-bit value for QB64x64 versions, while returning a 32-bit value for QB64. This allows for upgrade to 64-bit to be as simple as just swapping compilers and then rebuilding QB64 with the setup script. --- internal/c/libqb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/c/libqb.cpp b/internal/c/libqb.cpp index 5c6adedf0..4c8f3090b 100644 --- a/internal/c/libqb.cpp +++ b/internal/c/libqb.cpp @@ -12595,7 +12595,7 @@ int32 func__handle(){ #ifdef QB64_GUI #ifdef QB64_WINDOWS while (!window_handle){Sleep(100);} - return (int32)window_handle; + return (ptrszint)window_handle; #endif #endif