mirror of
https://github.com/minetest/minetest.git
synced 2024-12-27 16:37:30 +01:00
Do not bother to assert that a u8 is >= 0
This fixes a warning seen in GCC 7 on CI about a comparison in mapblock.h that is always true.
This commit is contained in:
parent
6303334cc2
commit
5a4d7fb0d6
@ -167,7 +167,7 @@ public:
|
||||
inline void setLightingComplete(LightBank bank, u8 direction,
|
||||
bool is_complete)
|
||||
{
|
||||
assert(direction >= 0 && direction <= 5);
|
||||
assert(direction <= 5);
|
||||
if (bank == LIGHTBANK_NIGHT) {
|
||||
direction += 6;
|
||||
}
|
||||
@ -182,7 +182,7 @@ public:
|
||||
|
||||
inline bool isLightingComplete(LightBank bank, u8 direction)
|
||||
{
|
||||
assert(direction >= 0 && direction <= 5);
|
||||
assert(direction <= 5);
|
||||
if (bank == LIGHTBANK_NIGHT) {
|
||||
direction += 6;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user