aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r--src/nvim/regexp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index fd1b6116f2..ba7e4eb2d3 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -1256,12 +1256,6 @@ static regprog_T *bt_regcomp(char_u *expr, int re_flags)
if (reg(REG_NOPAREN, &flags) == NULL)
return NULL;
- /* Small enough for pointer-storage convention? */
-#ifdef SMALL_MALLOC /* 16 bit storage allocation */
- if (regsize >= 65536L - 256L)
- EMSG_RET_NULL(_("E339: Pattern too long"));
-#endif
-
/* Allocate space. */
bt_regprog_T *r = xmalloc(sizeof(bt_regprog_T) + regsize);