diff options
Diffstat (limited to 'src/SFML/System/Win32/SleepImpl.cpp')
-rw-r--r-- | src/SFML/System/Win32/SleepImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SFML/System/Win32/SleepImpl.cpp b/src/SFML/System/Win32/SleepImpl.cpp index 41c1018..6b5cad2 100644 --- a/src/SFML/System/Win32/SleepImpl.cpp +++ b/src/SFML/System/Win32/SleepImpl.cpp @@ -1,7 +1,7 @@ //////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library -// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org) +// Copyright (C) 2007-2023 Laurent Gomila (laurent@sfml-dev.org) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages arising from the use of this software. @@ -44,7 +44,7 @@ void sleepImpl(Time time) timeBeginPeriod(tc.wPeriodMin); // Wait... - ::Sleep(time.asMilliseconds()); + ::Sleep(static_cast<DWORD>(time.asMilliseconds())); // Reset the timer resolution back to the system default timeEndPeriod(tc.wPeriodMin); |