mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Fix some narrowing warnings
This commit is contained in:
parent
b10797b3d5
commit
cdce33dd05
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue