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:
parent
0cdd429b44
commit
265bfdb019
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue