Skip to content
Permalink
Browse files

Fix truncation warning for F1000_MIN, F1000_MAX

  • Loading branch information
sfan5 authored and nerzhul committed Apr 27, 2020
1 parent 8a03097 commit 515d38a702f0ebe1f419ce38c86484ecb845ed36
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 515d38a

Please sign in to comment.