summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)
{