Cleanup: Resolve allocation size warning in Hook modifier RNA

GCC seems to complain about a possible signed to unsigned conversion
in combination with allocation and copying here.
This commit is contained in:
Hans Goudey 2024-03-26 15:43:12 -04:00
parent 0cdd429b44
commit 265bfdb019
1 changed files with 1 additions and 1 deletions

View File

@ -1139,7 +1139,7 @@ static void rna_HookModifier_vertex_indices_set(HookModifierData *hmd,
const int *indices,
int indices_num)
{
if (indices_num == 0) {
if (indices_num <= 0) {
MEM_SAFE_FREE(hmd->indexar);
hmd->indexar_num = 0;
}