comparison src/regexp_nfa.c @ 12752:09c856605191 v8.0.1254

patch 8.0.1254: undefined left shift in gethexchrs() commit https://github.com/vim/vim/commit/4c22a91d20cce4f28dd2852a13129b5a4cc691da Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 2 22:29:38 2017 +0100 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 https://github.com/vim/vim/issues/2255)
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Nov 2017 22:30:05 +0100
parents e769c912fcd9
children 307f2622826f
comparison
equal deleted inserted replaced
12751:9487518a1635 12752:09c856605191
1520 case 'o': /* %o123 octal */ 1520 case 'o': /* %o123 octal */
1521 case 'x': /* %xab hex 2 */ 1521 case 'x': /* %xab hex 2 */
1522 case 'u': /* %uabcd hex 4 */ 1522 case 'u': /* %uabcd hex 4 */
1523 case 'U': /* %U1234abcd hex 8 */ 1523 case 'U': /* %U1234abcd hex 8 */
1524 { 1524 {
1525 int nr; 1525 long nr;
1526 1526
1527 switch (c) 1527 switch (c)
1528 { 1528 {
1529 case 'd': nr = getdecchrs(); break; 1529 case 'd': nr = getdecchrs(); break;
1530 case 'o': nr = getoctchrs(); break; 1530 case 'o': nr = getoctchrs(); break;
2038 int ret; 2038 int ret;
2039 long minval, maxval; 2039 long minval, maxval;
2040 int greedy = TRUE; /* Braces are prefixed with '-' ? */ 2040 int greedy = TRUE; /* Braces are prefixed with '-' ? */
2041 parse_state_T old_state; 2041 parse_state_T old_state;
2042 parse_state_T new_state; 2042 parse_state_T new_state;
2043 int c2; 2043 long c2;
2044 int old_post_pos; 2044 int old_post_pos;
2045 int my_post_start; 2045 int my_post_start;
2046 int quest; 2046 int quest;
2047 2047
2048 /* Save the current parse state, so that we can use it if <atom>{m,n} is 2048 /* Save the current parse state, so that we can use it if <atom>{m,n} is