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:
Diffstat (limited to 'source/creator/creator_args.c')
-rw-r--r--source/creator/creator_args.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index afe9a135c79..f3e4d976d85 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -274,8 +274,7 @@ static bool parse_int_clamp(const char *str,
* that parses a comma separated list of numbers.
*/
static int *parse_int_relative_clamp_n(
- const char *str, int pos, int neg, int min, int max,
- int *r_value_len, const char **r_err_msg)
+ const char *str, int pos, int neg, int min, int max, int *r_value_len, const char **r_err_msg)
{
const char sep = ',';
int len = 1;
@@ -293,19 +292,18 @@ static int *parse_int_relative_clamp_n(
static const char *msg = "incorrect comma use";
*r_err_msg = msg;
goto fail;
-
}
else if (parse_int_relative_clamp(str, str_end, pos, neg, min, max, &values[i], r_err_msg)) {
i++;
}
else {
- goto fail; /* error message already set */
+ goto fail; /* error message already set */
}
- if (str_end) { /* next */
+ if (str_end) { /* next */
str = str_end + 1;
}
- else { /* finished */
+ else { /* finished */
break;
}
}