patch [#30227] Various MSVC (32-bit) Warning and Typo Fixes
[blender-staging.git] / intern / audaspace / intern / AUD_ConverterFunctions.cpp
index 53a644e3b90bef4bf00b436e50c100433d25fb56..c20f19a7e67d01b81cd31a5056b3431730b0d250 100644 (file)
 #include "AUD_Buffer.h"
 
 #define AUD_U8_0               0x80
-#define AUD_S16_MAX            0x7FFF
-#define AUD_S16_MIN            0x8000
+#define AUD_S16_MAX            ((int16_t)0x7FFF)
+#define AUD_S16_MIN            ((int16_t)0x8000)
 #define AUD_S16_FLT            32767.0f
-#define AUD_S32_MAX            0x7FFFFFFF
-#define AUD_S32_MIN            0x80000000
+#define AUD_S32_MAX            ((int32_t)0x7FFFFFFF)
+#define AUD_S32_MIN            ((int32_t)0x80000000)
 #define AUD_S32_FLT            2147483647.0f
 #define AUD_FLT_MAX            1.0f
 #define AUD_FLT_MIN            -1.0f