diff options
author | sfan5 <sfan5@live.de> | 2020-04-26 20:59:55 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2020-04-27 06:58:34 +0200 |
commit | 515d38a702f0ebe1f419ce38c86484ecb845ed36 (patch) | |
tree | aed6443ba0c20a72a1179529c96ad5b6e3b6eb85 | |
parent | 8a03097450441cc7589507509bf755082a027cc7 (diff) | |
download | minetest-515d38a702f0ebe1f419ce38c86484ecb845ed36.tar.gz minetest-515d38a702f0ebe1f419ce38c86484ecb845ed36.tar.bz2 minetest-515d38a702f0ebe1f419ce38c86484ecb845ed36.zip |
Fix truncation warning for F1000_MIN, F1000_MAX
-rw-r--r-- | src/util/serialize.h | 4 |
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 |