mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00: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
Add a link
Reference in a new issue