diff --git a/utils/screenshotgen/src/autocapture.cpp b/utils/screenshotgen/src/autocapture.cpp index aac2262fbe..ba3ec7bdd8 100644 --- a/utils/screenshotgen/src/autocapture.cpp +++ b/utils/screenshotgen/src/autocapture.cpp @@ -61,7 +61,7 @@ void AutoCaptureMechanism::Delay(int seconds) // Wait for 3 seconds clock_t start = clock(); - while ( (long)clock() - start < CLOCKS_PER_SEC * seconds) + while ( clock() - start < (clock_t)CLOCKS_PER_SEC * seconds) wxYieldIfNeeded(); }