summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-04-26 20:59:55 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2020-04-27 06:58:34 +0200
commit515d38a702f0ebe1f419ce38c86484ecb845ed36 (patch)
treeaed6443ba0c20a72a1179529c96ad5b6e3b6eb85 /src/util
parent8a03097450441cc7589507509bf755082a027cc7 (diff)
downloadminetest-515d38a702f0ebe1f419ce38c86484ecb845ed36.tar.gz
minetest-515d38a702f0ebe1f419ce38c86484ecb845ed36.tar.bz2
minetest-515d38a702f0ebe1f419ce38c86484ecb845ed36.zip
Fix truncation warning for F1000_MIN, F1000_MAX
Diffstat (limited to 'src/util')
-rw-r--r--src/util/serialize.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/serialize.h b/src/util/serialize.h
index 8ef0ad1c2..a4b5a234a 100644
--- a/src/util/serialize.h
+++ b/src/util/serialize.h
@@ -52,8 +52,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
// not represent the full range, but rather the largest safe range, of values on
// all supported architectures. Note: This definition makes assumptions on
// platform float-to-int conversion behavior.
-#define F1000_MIN ((float)(s32)((-0x7FFFFFFF - 1) / FIXEDPOINT_FACTOR))
-#define F1000_MAX ((float)(s32)((0x7FFFFFFF) / FIXEDPOINT_FACTOR))
+#define F1000_MIN ((float)(s32)((float)(-0x7FFFFFFF - 1) / FIXEDPOINT_FACTOR))
+#define F1000_MAX ((float)(s32)((float)(0x7FFFFFFF) / FIXEDPOINT_FACTOR))
#define STRING_MAX_LEN 0xFFFF
#define WIDE_STRING_MAX_LEN 0xFFFF