summaryrefslogtreecommitdiff
path: root/lib/maths.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-11-27 00:36:19 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-27 00:36:25 +0000
commit7827b06edf6a0629eb659540595c347965abfb88 (patch)
tree3b52612ae8f591f23e2b179fe817f4d4c948a7ce /lib/maths.h
parentEnable all Jason Turner recommended warnings (diff)
downloadilt-7827b06edf6a0629eb659540595c347965abfb88.tar.bz2
ilt-7827b06edf6a0629eb659540595c347965abfb88.tar.xz
ilt-7827b06edf6a0629eb659540595c347965abfb88.zip
Fix up lots of static analyzer warnings
Diffstat (limited to 'lib/maths.h')
-rw-r--r--lib/maths.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/maths.h b/lib/maths.h
index 18332b7..ad2f3e5 100644
--- a/lib/maths.h
+++ b/lib/maths.h
@@ -108,14 +108,14 @@ template<typename T>
inline constexpr auto
mph_to_ms(T v)
{
- return v / 2.237;
+ return v / 2.237L;
}
template<typename T>
inline constexpr auto
kph_to_ms(T v)
{
- return v / 3.6;
+ return v / 3.6L;
}
// ... literals are handy for now, probably go away when we load stuff externally