0
0
mirror of https://github.com/vim/vim.git synced 2025-10-29 09:37:35 -04:00

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 <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Damien Lejay
2025-09-04 21:58:50 +02:00
committed by Christian Brabandt
parent 6d8307fc2f
commit 63a02ca39a
2 changed files with 3 additions and 1 deletions

View File

@@ -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