modify code check error

Signed-off-by: yaoyuchi <yaoyuchi@huawei.com>
This commit is contained in:
yaoyuchi
2022-03-22 09:08:18 +08:00
parent 8a2c2c5af8
commit 1e5853a0fb
@@ -168,7 +168,7 @@ void RosenRenderArcTrack::Paint(RenderContext& context, const Offset& offset)
double highLightStart = 0.0;
size_t highLightIndex = 0;
double ratio = leftToRight_ ? GetTotalRatio() : 1 - GetTotalRatio();
for (uint32_t index = colors_.size() - 1; index >= 0; --index) {
for (int32_t index = static_cast<int32_t>(colors_.size()) - 1; index >= 0; --index) {
data.color = colors_[index];
data.color.ChangeAlpha(UNSELECT_ALPHA);
currentStart += weights_[index];