From 265bfdb019ed7290c404c0df69e7bc287d1c5fc0 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 26 Mar 2024 15:43:12 -0400 Subject: [PATCH] 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. --- source/blender/makesrna/intern/rna_modifier.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/makesrna/intern/rna_modifier.cc b/source/blender/makesrna/intern/rna_modifier.cc index fc53c5b14d4..152ef570df8 100644 --- a/source/blender/makesrna/intern/rna_modifier.cc +++ b/source/blender/makesrna/intern/rna_modifier.cc @@ -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; }