mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Fix truncation warning for F1000_MIN, F1000_MAX
This commit is contained in:
parent
8a03097450
commit
515d38a702
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue