patch 9.1.1731: Not using const qualifier for opchars
Commit:
https://github.com/vim/vim/commit/63a02ca39a73c81683ffe182c8cea9000d523299
Author: Damien Lejay <[email protected]>
Date: Thu Sep 4 21:58:50 2025 +0200
patch 9.1.1731: Not using const qualifier for opchars
Problem: Not using const qualifier
Solution: Mark the opchars array const
closes: #18196
Signed-off-by: Damien Lejay <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/ops.c b/src/ops.c
index b4b59de22..bf5b306dc 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -30,7 +30,7 @@ static void pbyte(pos_T lp, int c);
* IMPORTANT: Index must correspond with defines in vim.h!!!
* The third field holds OPF_ flags.
*/
-static char opchars[][3] =
+static const char opchars[][3] =
{
{NUL, NUL, 0}, // OP_NOP
{'d', NUL, OPF_CHANGE}, // OP_DELETE
diff --git a/src/version.c b/src/version.c
index aa3897faa..c2381542b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -724,6 +724,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1731,
/**/
1730,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uuGML-0049MX-Fp%40256bit.org.