diff options
author | marxin <mliska@suse.cz> | 2019-02-20 21:59:03 +0100 |
---|---|---|
committer | marxin <mliska@suse.cz> | 2019-02-21 19:34:35 +0100 |
commit | 7de7f0ef178d2800f1ca70c15e8aff8aeb16bb8d (patch) | |
tree | e4d933f2c7ea2259b2821b2601aba224d38184f6 /scene | |
parent | a01dca79e2f7b7cb221a4c416cade4fad2941446 (diff) |
Fix all -Wtype-limits warnings.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/3d/voxel_light_baker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/voxel_light_baker.cpp b/scene/3d/voxel_light_baker.cpp index 91b3ea6ca0..42c2318701 100644 --- a/scene/3d/voxel_light_baker.cpp +++ b/scene/3d/voxel_light_baker.cpp @@ -2208,7 +2208,7 @@ PoolVector<int> VoxelLightBaker::create_gi_probe_data() { } { - uint16_t alpha = CLAMP(uint32_t(bake_cells[i].alpha * 65535.0), 0, 65535); + uint16_t alpha = MAX(uint32_t(bake_cells[i].alpha * 65535.0), 65535); uint16_t level = bake_cells[i].level; w32[ofs++] = (uint32_t(level) << 16) | uint32_t(alpha); |