Skip to content

Commit

Permalink
Fix signedness warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed May 4, 2023
1 parent d426e80 commit ba6c448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/voxel_buffer_gd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void VoxelBuffer::remap_values(unsigned int channel_index, PackedInt32Array map)

// TODO If `get_channel_data` could return a span of size 1 for this case, we wouldn't need this code
if (_buffer->get_channel_compression(channel_index) == VoxelBufferInternal::COMPRESSION_UNIFORM) {
int v = _buffer->get_voxel(Vector3i(), channel_index);
uint64_t v = _buffer->get_voxel(Vector3i(), channel_index);
if (v < map_r.size()) {
v = map_r[v];
}
Expand Down

0 comments on commit ba6c448

Please sign in to comment.