Fix error: conversion from ‘int’ to ‘int16_t’ #120877

Merged
Jacques Lucke merged 2 commits from Giang-Chaebol/blender:FixConversionIndexMask into blender-v4.1-release 2024-04-22 11:34:22 +02:00
1 changed files with 3 additions and 3 deletions

View File

@ -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));