[Bf-blender-cvs] [b97d5c388d2] temp-lineart-contained: Cleanup: too small loop variable type

Jacques Lucke noreply at git.blender.org
Wed May 12 04:15:49 CEST 2021


Commit: b97d5c388d2b6b3e1e60d84387b548c443cbf5d6
Author: Jacques Lucke
Date:   Mon May 10 10:52:33 2021 +0200
Branches: temp-lineart-contained
https://developer.blender.org/rBb97d5c388d2b6b3e1e60d84387b548c443cbf5d6

Cleanup: too small loop variable type

Clang-Tidy: bugprone-too-small-loop-variable

===================================================================

M	source/blender/editors/gpencil/gpencil_data.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index c5f094e030a..6f727de0e47 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -3656,7 +3656,7 @@ static int gpencil_materials_append_to_object_exec(bContext *C, wmOperator *op)
   }
 
   /* Duplicate materials. */
-  for (short i = 0; i < ob_src->totcol; i++) {
+  for (int i = 0; i < ob_src->totcol; i++) {
     Material *ma_src = BKE_object_material_get(ob_src, i + 1);
     if (only_selected && ma_src != ma_active) {
       continue;



More information about the Bf-blender-cvs mailing list