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

Diff of /code/trunk/pcre_study.c

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

revision 1146 by zherczeg, Sat Oct 20 16:45:33 2012 UTC revision 1148 by zherczeg, Sat Oct 20 20:52:52 2012 UTC
# Line 323  for (;;) Line 323  for (;;)
323    
324      /* Check a class for variable quantification */      /* Check a class for variable quantification */
325    
 #if defined SUPPORT_UTF || !defined COMPILE_PCRE8  
     case OP_XCLASS:  
     cc += GET(cc, 1);  
     cc -= PRIV(OP_lengths)[OP_CLASS];  
     /* Fall through */  
 #endif  
   
326      case OP_CLASS:      case OP_CLASS:
327      case OP_NCLASS:      case OP_NCLASS:
328    #if defined SUPPORT_UTF || defined COMPILE_PCRE16 || defined COMPILE_PCRE32
329        case OP_XCLASS:
330        /* The original code caused an unsigned overflow in 64 bit systems,
331        so now we use a conditional statement. */
332        if (op == OP_XCLASS)
333          cc += GET(cc, 1);
334        else
335          cc += PRIV(OP_lengths)[OP_CLASS];
336    #else
337      cc += PRIV(OP_lengths)[OP_CLASS];      cc += PRIV(OP_lengths)[OP_CLASS];
338    #endif
339    
340      switch (*cc)      switch (*cc)
341        {        {

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

  ViewVC Help
Powered by ViewVC 1.1.5