diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-10 09:42:07 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-11 14:32:59 -0400 |
commit | f7f65f5a82346a18c3ddf7143d64e8ce3ad399e2 (patch) | |
tree | 8c65d6ef502069d0be9238e22e4b124d5a8f0112 /src/nvim/regexp_nfa.c | |
parent | dd6c1a0a8f14aed30816aae6a354f2056bfbf15f (diff) | |
download | rneovim-f7f65f5a82346a18c3ddf7143d64e8ce3ad399e2.tar.gz rneovim-f7f65f5a82346a18c3ddf7143d64e8ce3ad399e2.tar.bz2 rneovim-f7f65f5a82346a18c3ddf7143d64e8ce3ad399e2.zip |
vim-patch:8.0.1254: undefined left shift in gethexchrs()
Problem: Undefined left shift in gethexchrs(). (geeknik)
Solution: Use unsigned long. (idea by Christian Brabandt, closes vim/vim#2255)
https://github.com/vim/vim/commit/4c22a91d20cce4f28dd2852a13129b5a4cc691da
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r-- | src/nvim/regexp_nfa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index dcd89d1470..ac811ec8f4 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -1409,7 +1409,7 @@ static int nfa_regatom(void) case 'u': /* %uabcd hex 4 */ case 'U': /* %U1234abcd hex 8 */ { - int nr; + int64_t nr; switch (c) { case 'd': nr = getdecchrs(); break; @@ -1859,7 +1859,7 @@ static int nfa_regpiece(void) int greedy = TRUE; /* Braces are prefixed with '-' ? */ parse_state_T old_state; parse_state_T new_state; - int c2; + int64_t c2; int old_post_pos; int my_post_start; int quest; |