aboutsummaryrefslogtreecommitdiff
path: root/src/unittest
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-10-04 02:50:04 -0400
committerkwolekr <kwolekr@minetest.net>2015-10-04 04:00:16 -0400
commitf0cd5da687ca216b4bdd9abe7bc8038a679d3763 (patch)
tree329909b22c4494a2df2249c5697acb961b0fc527 /src/unittest
parentb12bdcce348323247811b9a0299e2e9294991d13 (diff)
downloadminetest-f0cd5da687ca216b4bdd9abe7bc8038a679d3763.tar.gz
minetest-f0cd5da687ca216b4bdd9abe7bc8038a679d3763.tar.bz2
minetest-f0cd5da687ca216b4bdd9abe7bc8038a679d3763.zip
Define and use limit constants for Irrlicht fixed-width types
Diffstat (limited to 'src/unittest')
-rw-r--r--src/unittest/test_utilities.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unittest/test_utilities.cpp b/src/unittest/test_utilities.cpp
index df90d37bd..3c000e760 100644
--- a/src/unittest/test_utilities.cpp
+++ b/src/unittest/test_utilities.cpp
@@ -282,7 +282,7 @@ void TestUtilities::testIsPowerOfTwo()
UASSERT(is_power_of_two((1 << exponent)) == true);
UASSERT(is_power_of_two((1 << exponent) + 1) == false);
}
- UASSERT(is_power_of_two((u32)-1) == false);
+ UASSERT(is_power_of_two(U32_MAX) == false);
}
void TestUtilities::testMyround()