Fix some signedness GCC warnings
parent
8851361531
commit
5bb0f4a508
|
@ -418,7 +418,7 @@ NormalMapImages store_normalmap_data_to_images(
|
|||
const uint8_t g = tile_index >> 8;
|
||||
const uint8_t b = tile.axis;
|
||||
const unsigned int pi = pixel_size * (tile.x + tile.y * block_size.x + tile.z * deck_size);
|
||||
ZN_ASSERT(pi < bytes.size());
|
||||
ZN_ASSERT(int(pi) < bytes.size());
|
||||
bytes_w[pi] = r;
|
||||
bytes_w[pi + 1] = g;
|
||||
bytes_w[pi + 2] = b;
|
||||
|
|
|
@ -453,7 +453,7 @@ int VoxelMesherTransvoxel::get_normalmap_tile_resolution_max() const {
|
|||
}
|
||||
|
||||
void VoxelMesherTransvoxel::set_normalmap_begin_lod_index(int lod_index) {
|
||||
ERR_FAIL_INDEX(lod_index, constants::MAX_LOD);
|
||||
ERR_FAIL_INDEX(lod_index, int(constants::MAX_LOD));
|
||||
_normalmap_settings.begin_lod_index = lod_index;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue