summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-02 22:29:38 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-02 22:29:38 +0100
commit4c22a91d20cce4f28dd2852a13129b5a4cc691da (patch)
tree7f11c3f7a21b9135af78153e5c023888e0fc126a /src/regexp_nfa.c
parent430dc5d360166ca5bb6a73f2c87ae53e09282ecb (diff)
downloadvim-git-4c22a91d20cce4f28dd2852a13129b5a4cc691da.tar.gz
patch 8.0.1254: undefined left shift in gethexchrs()v8.0.1254
Problem: Undefined left shift in gethexchrs(). (geeknik) Solution: Use unsigned long. (idea by Christian Brabandt, closes #2255)
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 86061a3a5..feb17bcaf 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -1522,7 +1522,7 @@ nfa_regatom(void)
case 'u': /* %uabcd hex 4 */
case 'U': /* %U1234abcd hex 8 */
{
- int nr;
+ long nr;
switch (c)
{
@@ -2040,7 +2040,7 @@ nfa_regpiece(void)
int greedy = TRUE; /* Braces are prefixed with '-' ? */
parse_state_T old_state;
parse_state_T new_state;
- int c2;
+ long c2;
int old_post_pos;
int my_post_start;
int quest;