Cleanup: quiet warning

This commit is contained in:
Jacques Lucke 2022-12-17 11:51:12 +01:00
parent e07c5a14c9
commit c18055ba5c
1 changed files with 2 additions and 1 deletions

View File

@ -394,7 +394,8 @@ static int armature_calc_roll_exec(bContext *C, wmOperator *op)
vec[type] = 1.0f;
}
else {
vec[type - 2] = -1.0f;
/* Use casting to quiet -Warray-bounds warning in gcc. */
vec[(int)type - 2] = -1.0f;
}
mul_m3_v3(imat, vec);
normalize_v3(vec);