patch 9.1.1117: there are a few minor style issues
Problem: there are a few minor style issues
Solution: fix the issues (Hirohito Higashi)
closes: #16646
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/version.c b/src/version.c
index 19968a6..22047af 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1117,
+/**/
1116,
/**/
1115,
diff --git a/src/vim9class.c b/src/vim9class.c
index 8220536..b5e3a13 100644
--- a/src/vim9class.c
+++ b/src/vim9class.c
@@ -2489,7 +2489,7 @@
if (success && is_enum && num_enum_values == 0)
// Empty enum statement. Add an empty "values" class variable
- enum_add_values_member(cl, &classmembers, 0, &type_list);
+ success = enum_add_values_member(cl, &classmembers, 0, &type_list);
/*
* Check a few things
diff --git a/src/vim9expr.c b/src/vim9expr.c
index 67722d1..76ce9c5 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -902,7 +902,7 @@
|| (imp = find_imported(name, 0, FALSE)) != NULL
|| (imp = find_imported_from_extends(cctx, name, 0, FALSE))
!= NULL)
- res = compile_load_scriptvar(cctx, name, *arg, &end, imp);
+ res = compile_load_scriptvar(cctx, name, *arg, &end, imp);
// When evaluating an expression and the name starts with an
// uppercase letter it can be a user defined function.