/[pcre]/code/trunk/pcre_compile.c
ViewVC logotype

Diff of /code/trunk/pcre_compile.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1147 by chpe, Sat Oct 20 20:17:03 2012 UTC revision 1148 by zherczeg, Sat Oct 20 20:52:52 2012 UTC
# Line 1914  for (;;) Line 1914  for (;;)
1914    
1915      /* Check a class for variable quantification */      /* Check a class for variable quantification */
1916    
 #if defined SUPPORT_UTF || defined COMPILE_PCRE16 || defined COMPILE_PCRE32  
     case OP_XCLASS:  
 #endif  
1917      case OP_CLASS:      case OP_CLASS:
1918      case OP_NCLASS:      case OP_NCLASS:
   
     switch (op)  
       {  
1919  #if defined SUPPORT_UTF || defined COMPILE_PCRE16 || defined COMPILE_PCRE32  #if defined SUPPORT_UTF || defined COMPILE_PCRE16 || defined COMPILE_PCRE32
1920        case OP_XCLASS:      case OP_XCLASS:
1921        /* The original code caused an unsigned overflow in 64 bit systems,
1922        so now we use a conditional statement. */
1923        if (op == OP_XCLASS)
1924        cc += GET(cc, 1);        cc += GET(cc, 1);
1925        break;      else
 #endif  
   
       case OP_CLASS:  
       case OP_NCLASS:  
1926        cc += PRIV(OP_lengths)[OP_CLASS];        cc += PRIV(OP_lengths)[OP_CLASS];
1927        break;  #else
1928        }      cc += PRIV(OP_lengths)[OP_CLASS];
1929    #endif
1930    
1931      switch (*cc)      switch (*cc)
1932        {        {

Legend:
Removed from v.1147  
changed lines
  Added in v.1148

  ViewVC Help
Powered by ViewVC 1.1.5