Fix unsigned warnings, again

This commit is contained in:
Marc Gilleron 2020-09-11 20:08:52 +01:00
parent b8cd7fe8c4
commit d5c22842b5
2 changed files with 6 additions and 6 deletions

View File

@ -56,9 +56,9 @@ static void generate_blocky_mesh(
const VoxelLibrary::BakedData &library,
bool bake_occlusion, float baked_occlusion_darkness) {
ERR_FAIL_COND(block_size.x < 2 * VoxelMesherBlocky::PADDING ||
block_size.y < 2 * VoxelMesherBlocky::PADDING ||
block_size.z < 2 * VoxelMesherBlocky::PADDING);
ERR_FAIL_COND(block_size.x < static_cast<int>(2 * VoxelMesherBlocky::PADDING) ||
block_size.y < static_cast<int>(2 * VoxelMesherBlocky::PADDING) ||
block_size.z < static_cast<int>(2 * VoxelMesherBlocky::PADDING));
// Build lookup tables so to speed up voxel access.
// These are values to add to an address in order to get given neighbor.

View File

@ -213,9 +213,9 @@ void build_voxel_mesh_as_greedy_cubes(
const Vector3i block_size,
std::vector<uint8_t> mask_memory_pool) {
ERR_FAIL_COND(block_size.x < 2 * VoxelMesherCubes::PADDING ||
block_size.y < 2 * VoxelMesherCubes::PADDING ||
block_size.z < 2 * VoxelMesherCubes::PADDING);
ERR_FAIL_COND(block_size.x < static_cast<int>(2 * VoxelMesherCubes::PADDING) ||
block_size.y < static_cast<int>(2 * VoxelMesherCubes::PADDING) ||
block_size.z < static_cast<int>(2 * VoxelMesherCubes::PADDING));
struct MaskValue {
Voxel_T color;