diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-20 13:49:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-20 13:56:11 +0300 |
commit | 1782abf6e2c6fb13d04b206d2c36567a28619a59 (patch) | |
tree | bc4ecfcb1b80716183a5914cd210e6d9490ac8b1 /source/blender/blenlib/intern | |
parent | 60ff803998360c8a83c3f740342c44124ec277ff (diff) |
Fix BLI_assert for MSVC
Also use `_BLI_ASSERT` prefix for internal defines.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/math_base_inline.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c index 1f517471407..eed06c7841b 100644 --- a/source/blender/blenlib/intern/math_base_inline.c +++ b/source/blender/blenlib/intern/math_base_inline.c @@ -368,10 +368,8 @@ MINLINE int compare_ff_relative(float a, float b, const float max_diff, const in { union {float f; int i;} ua, ub; -#if 0 /* No BLI_assert in INLINE :/ */ BLI_assert(sizeof(float) == sizeof(int)); BLI_assert(max_ulps < (1 << 22)); -#endif if (fabsf(a - b) <= max_diff) { return 1; |