Skip to content

Commit

Permalink
Fix some narrowing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Desour committed Mar 2, 2024
1 parent b10797b commit cdce33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/benchmark/benchmark_mapblock.cpp
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit cdce33d

Please sign in to comment.