diff options
author | SmallJoker <mk939@ymail.com> | 2014-12-05 16:09:49 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2014-12-05 16:09:53 +1000 |
commit | 5da6896d51ae3ee5140dc1041eff44a616751231 (patch) | |
tree | f1dbdf849dbba7f931a7187fcf44c8d46c4fcd5b /src/test.cpp | |
parent | a648120d549566388959b824c3e901ca3a6bc11c (diff) | |
download | minetest-5da6896d51ae3ee5140dc1041eff44a616751231.tar.xz |
Fix MSVC build
Note: The unit test was technically incorrect for all platforms but passes due to implicit casting
Diffstat (limited to 'src/test.cpp')
-rw-r--r-- | src/test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test.cpp b/src/test.cpp index a12c12c63..30252d85b 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -555,7 +555,7 @@ struct TestSettings: public TestBase UASSERT(fabs(np.spread.Z - 250) < 0.001); UASSERT(np.seed == 12345); UASSERT(np.octaves == 5); - UASSERT(fabs(np.persist == 0.7) < 0.001); + UASSERT(fabs(np.persist - 0.7) < 0.001); np.offset = 3.5; np.octaves = 6; |