summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-11 19:09:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-11 19:24:55 +0200
commit9157adfe80dff953687ec364cc612cf45f2b9609 (patch)
treecd677186d1c41a55deb4a6942827f6f89ffb5357
parent2fb9086c6b5da63e382bc9fb5ab7523bf25b69b4 (diff)
fix msvc warnings
-rw-r--r--src/script.inl2
-rw-r--r--src/timer-ns.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/script.inl b/src/script.inl
index 658192f6..d3c9a06e 100644
--- a/src/script.inl
+++ b/src/script.inl
@@ -43,7 +43,7 @@ Script<S, Obj>::~Script() noexcept
{
case script_lifecycle::no_init:
case script_lifecycle::torn_down:
- state = (script_lifecycle)(unsigned)-1;
+ state = (script_lifecycle)-1;
break;
case script_lifecycle::COUNT:
std::unreachable();
diff --git a/src/timer-ns.cpp b/src/timer-ns.cpp
index aed95c41..e781e66c 100644
--- a/src/timer-ns.cpp
+++ b/src/timer-ns.cpp
@@ -10,7 +10,7 @@ namespace floormat {
Debug& operator<<(Debug& dbg, const Ns& val)
{
const char* unit = "";
- double x = val.stamp;
+ auto x = (double)val.stamp;
int precision;
if (val >= 10*Second)
{