Skip to content

Commit 63a02ca

Browse files
dlejaychrisbra
authored andcommitted
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>
1 parent 6d8307f commit 63a02ca

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static void pbyte(pos_T lp, int c);
3030
* IMPORTANT: Index must correspond with defines in vim.h!!!
3131
* The third field holds OPF_ flags.
3232
*/
33-
static char opchars[][3] =
33+
static const char opchars[][3] =
3434
{
3535
{NUL, NUL, 0}, // OP_NOP
3636
{'d', NUL, OPF_CHANGE}, // OP_DELETE

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,8 @@ static char *(features[]) =
724724

725725
static int included_patches[] =
726726
{ /* Add new patch number below this line */
727+
/**/
728+
1731,
727729
/**/
728730
1730,
729731
/**/

0 commit comments

Comments
 (0)