aboutsummaryrefslogtreecommitdiff
path: root/src/unittest
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-05-16 19:59:53 -0400
committerkwolekr <kwolekr@minetest.net>2015-05-16 20:15:03 -0400
commit11a96e4901ce54c4646e47866f7a66cd9034c16b (patch)
treeb7cefb2e99f0faa4f5141c95aa6a7d169d21968b /src/unittest
parentfb36c471d7c35bafec9c70028fbabf4ea4838ad2 (diff)
downloadminetest-11a96e4901ce54c4646e47866f7a66cd9034c16b.tar.gz
minetest-11a96e4901ce54c4646e47866f7a66cd9034c16b.tar.bz2
minetest-11a96e4901ce54c4646e47866f7a66cd9034c16b.zip
Add -Wsign-compare for Clang builds and fix some signed/unsigned compiler warnings
Diffstat (limited to 'src/unittest')
-rw-r--r--src/unittest/test_schematic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unittest/test_schematic.cpp b/src/unittest/test_schematic.cpp
index df47d2bc0..480124428 100644
--- a/src/unittest/test_schematic.cpp
+++ b/src/unittest/test_schematic.cpp
@@ -99,7 +99,7 @@ void TestSchematic::testMtsSerializeDeserialize(INodeDefManager *ndef)
UASSERT(schem2.size == size);
for (size_t i = 0; i != volume; i++)
UASSERT(schem2.schemdata[i] == schem.schemdata[i]);
- for (size_t y = 0; y != size.Y; y++)
+ for (s16 y = 0; y != size.Y; y++)
UASSERTEQ(u8, schem2.slice_probs[y], schem.slice_probs[y]);
}