My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

\x{N} is a syntax error

+14 -8
+14 -8
vendor/git/quickjs-c/libregexp.c
··· 757 757 c = '\v'; 758 758 break; 759 759 case 'x': 760 + { 761 + int h0, h1; 762 + 763 + h0 = from_hex(*p++); 764 + if (h0 < 0) 765 + return -1; 766 + h1 = from_hex(*p++); 767 + if (h1 < 0) 768 + return -1; 769 + c = (h0 << 4) | h1; 770 + } 771 + break; 760 772 case 'u': 761 773 { 762 - int h, n, i; 774 + int h, i; 763 775 uint32_t c1; 764 776 765 777 if (*p == '{' && allow_utf16) { ··· 777 789 } 778 790 p++; 779 791 } else { 780 - if (c == 'x') { 781 - n = 2; 782 - } else { 783 - n = 4; 784 - } 785 - 786 792 c = 0; 787 - for(i = 0; i < n; i++) { 793 + for(i = 0; i < 4; i++) { 788 794 h = from_hex(*p++); 789 795 if (h < 0) { 790 796 return -1;