diff options
author | YimingWu <xp8110@outlook.com> | 2021-07-04 08:25:58 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-07-04 08:25:58 +0300 |
commit | c56ef6fd89c149a87afe62dffc81c9083dd7a2c2 (patch) | |
tree | 8056bfb005fbb664e0e09ce84a5ee80397971859 /source/blender/blenlib/tests/BLI_math_base_test.cc | |
parent | 442f269a72e8f07393fd246f642e210171a1c9bc (diff) | |
parent | b73dc36859e03845f702a3e985b536ac9afef63a (diff) |
Merge remote-tracking branch 'origin/master' into lineart-bvhlineart-bvh
Diffstat (limited to 'source/blender/blenlib/tests/BLI_math_base_test.cc')
-rw-r--r-- | source/blender/blenlib/tests/BLI_math_base_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/tests/BLI_math_base_test.cc b/source/blender/blenlib/tests/BLI_math_base_test.cc index d006a2eb59a..f354dd4ce23 100644 --- a/source/blender/blenlib/tests/BLI_math_base_test.cc +++ b/source/blender/blenlib/tests/BLI_math_base_test.cc @@ -72,7 +72,7 @@ TEST(math_base, CompareFFRelativeZero) EXPECT_TRUE(compare_ff_relative(f0, fn1, max_diff, 1)); EXPECT_TRUE(compare_ff_relative(fn1, f0, max_diff, 1)); - /* Note: in theory, this should return false, since 0.0f and -0.0f have 0x80000000 diff, + /* NOTE: in theory, this should return false, since 0.0f and -0.0f have 0x80000000 diff, * but overflow in subtraction seems to break something here * (abs(*(int *)&fn0 - *(int *)&f0) == 0x80000000 == fn0), probably because int32 cannot * hold this abs value. this is yet another illustration of why one shall never use (near-)zero |