mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 07:22:12 -05:00
Fix: compile error when converting int to int16_t
Pull Request: https://projects.blender.org/blender/blender/pulls/120877
This commit is contained in:
parent
e1743a0317
commit
2c29fd4e09
1 changed files with 3 additions and 3 deletions
|
@ -441,9 +441,9 @@ static void inverted_indices_to_segments(const IndexMaskSegment segment,
|
|||
break;
|
||||
}
|
||||
|
||||
const int16_t gap_first = indices[size_before_gap - 1] + 1;
|
||||
const int16_t next = indices[size_before_gap];
|
||||
const int16_t gap_size = next - gap_first;
|
||||
const int16_t gap_first = int16_t(indices[size_before_gap - 1] + 1);
|
||||
const int16_t next = int16_t(indices[size_before_gap]);
|
||||
const int16_t gap_size = int16_t(next - gap_first);
|
||||
if (gap_size > range_threshold) {
|
||||
finish_indices();
|
||||
r_segments.append_as(offset + gap_first, static_indices.take_front(gap_size));
|
||||
|
|
Loading…
Reference in a new issue