mirror of
https://github.com/minetest/minetest.git
synced 2025-01-11 07:47:31 +01:00
Fix some narrowing warnings
This commit is contained in:
parent
b10797b3d5
commit
cdce33dd05
@ -27,7 +27,7 @@ static void allocateSome(MBContainer &vec, u32 n)
|
||||
{
|
||||
vec.reserve(vec.size() + n);
|
||||
for (u32 i = 0; i < n; i++) {
|
||||
auto *mb = new MapBlock({i & 0xff, 0, i >> 8}, nullptr);
|
||||
auto *mb = new MapBlock(v3s16(i & 0xff, 0, (i >> 8) & S16_MAX), nullptr);
|
||||
vec.push_back(mb);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user