aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2021-12-01 18:54:12 -0500
committerrubenwardy <rw@rubenwardy.com>2022-04-08 14:55:21 +0100
commit7993909fabce4f796ca67b5a8139936667de25df (patch)
tree2ff9368e3e370ac00e2ae9d17a08ec68b3e426d1 /src/util
parent88b21a72f18db6a94e58a8047c4dec6160327e73 (diff)
downloadminetest-7993909fabce4f796ca67b5a8139936667de25df.tar.gz
minetest-7993909fabce4f796ca67b5a8139936667de25df.tar.bz2
minetest-7993909fabce4f796ca67b5a8139936667de25df.zip
Spacing fixes
Diffstat (limited to 'src/util')
-rw-r--r--src/util/ieee_float.cpp2
-rw-r--r--src/util/string.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/ieee_float.cpp b/src/util/ieee_float.cpp
index 887258921..b73763c55 100644
--- a/src/util/ieee_float.cpp
+++ b/src/util/ieee_float.cpp
@@ -39,7 +39,7 @@ f32 u32Tof32Slow(u32 i)
if (exp == 0xFF) {
// Inf/NaN
if (imant == 0) {
- if (std::numeric_limits<f32>::has_infinity)
+ if (std::numeric_limits<f32>::has_infinity)
return sign ? -std::numeric_limits<f32>::infinity() :
std::numeric_limits<f32>::infinity();
return sign ? std::numeric_limits<f32>::max() :
diff --git a/src/util/string.h b/src/util/string.h
index 8a9e83f22..f4ca1a7de 100644
--- a/src/util/string.h
+++ b/src/util/string.h
@@ -410,7 +410,7 @@ DEFINE_STD_TOSTRING_FLOATINGPOINT(long double)
template <typename T>
inline wstring to_wstring(T val)
{
- return utf8_to_wide(to_string(val));
+ return utf8_to_wide(to_string(val));
}
}
#endif