Fix w64 build
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 24 Jul 2018 08:06:56 +0000 (10:06 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 24 Jul 2018 08:06:56 +0000 (10:06 +0200)
* src/windowmessages.cpp (delayed_invalidate_ui): Cast delay
to intptr_t before casting to int.

src/windowmessages.cpp

index 5f90e37..7c35484 100644 (file)
@@ -450,7 +450,8 @@ delayed_invalidate_ui (LPVOID minsleep)
   invalidation_in_progress = true;
   gpgrt_lock_lock(&invalidate_lock);
 
-  Sleep((int) minsleep);
+  int sleep_ms = (intptr_t)minsleep;
+  Sleep (sleep_ms);
   int i = 0;
   while (invalidation_blocked)
     {