PVS/V501: ui_compositor.c: identical sub-expressions #9673

This commit is contained in:
Billy SU 2019-03-05 08:33:40 +08:00 committed by Justin M. Keyes
parent 2816bc8620
commit 7e6fce0698

View File

@ -157,7 +157,7 @@ bool ui_comp_put_grid(ScreenGrid *grid, int row, int col, int height, int width,
kv_push(layers, grid);
if (insert_at < kv_size(layers)-1) {
for (size_t i = kv_size(layers)-1; i > insert_at; i--) {
kv_A(layers, i) = kv_A(layers, i-i);
kv_A(layers, i) = kv_A(layers, i-1);
}
kv_A(layers, insert_at) = grid;
}