summaryrefslogtreecommitdiff
path: root/src/SFML/System/Time.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SFML/System/Time.cpp')
-rw-r--r--src/SFML/System/Time.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SFML/System/Time.cpp b/src/SFML/System/Time.cpp
index 681c9a9..a96626c 100644
--- a/src/SFML/System/Time.cpp
+++ b/src/SFML/System/Time.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 @@ m_microseconds(0)
////////////////////////////////////////////////////////////
float Time::asSeconds() const
{
- return m_microseconds / 1000000.f;
+ return static_cast<float>(static_cast<double>(m_microseconds) / 1000000.0);
}