[Bf-blender-cvs] [eba9404cc79] master: Cleanup: too small loop variable type
Jacques Lucke
noreply at git.blender.org
Mon May 10 10:52:41 CEST 2021
Commit: eba9404cc79c322c68860eabf0e8c10a2de19236
Author: Jacques Lucke
Date: Mon May 10 10:52:33 2021 +0200
Branches: master
https://developer.blender.org/rBeba9404cc79c322c68860eabf0e8c10a2de19236
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