Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-16 03:58:22 +0300
committerCampbell Barton <campbell@blender.org>2022-03-16 03:58:22 +0300
commitbe7855591e3b47e5e72c09555946f75975a8c028 (patch)
treeeb11ff27360e2285cddfe24609bc293b103e9ac0 /source/blender/blenlib/intern/expr_pylike_eval.c
parent379bd6d50ce37e07cbc4fb1e1c47c814f6a7530e (diff)
Cleanup: rename cnt to count
Follow naming from T85728.
Diffstat (limited to 'source/blender/blenlib/intern/expr_pylike_eval.c')
-rw-r--r--source/blender/blenlib/intern/expr_pylike_eval.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/expr_pylike_eval.c b/source/blender/blenlib/intern/expr_pylike_eval.c
index db677cd304c..1c32336fee0 100644
--- a/source/blender/blenlib/intern/expr_pylike_eval.c
+++ b/source/blender/blenlib/intern/expr_pylike_eval.c
@@ -829,18 +829,18 @@ static bool parse_unary(ExprParseState *state)
/* Specially supported functions. */
if (STREQ(state->tokenbuf, "min")) {
- int cnt = parse_function_args(state);
- CHECK_ERROR(cnt > 0);
+ int count = parse_function_args(state);
+ CHECK_ERROR(count > 0);
- parse_add_op(state, OPCODE_MIN, 1 - cnt)->arg.ival = cnt;
+ parse_add_op(state, OPCODE_MIN, 1 - count)->arg.ival = count;
return true;
}
if (STREQ(state->tokenbuf, "max")) {
- int cnt = parse_function_args(state);
- CHECK_ERROR(cnt > 0);
+ int count = parse_function_args(state);
+ CHECK_ERROR(count > 0);
- parse_add_op(state, OPCODE_MAX, 1 - cnt)->arg.ival = cnt;
+ parse_add_op(state, OPCODE_MAX, 1 - count)->arg.ival = count;
return true;
}