/[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 903 by ph10, Sat Jan 21 16:37:17 2012 UTC revision 904 by ph10, Mon Jan 23 17:30:49 2012 UTC
# Line 3067  if (next >= 0) switch(op_code) Line 3067  if (next >= 0) switch(op_code)
3067      }      }
3068    else    else
3069  #endif  /* SUPPORT_UTF */  #endif  /* SUPPORT_UTF */
3070    return (c != TABLE_GET(next, cd->fcc, next));  /* Non-UTF-8 mode */    return (c != TABLE_GET((unsigned int)next, cd->fcc, next));  /* Non-UTF-8 mode */
3071    
3072    /* For OP_NOT and OP_NOTI, the data is always a single-byte character. These    /* For OP_NOT and OP_NOTI, the data is always a single-byte character. These
3073    opcodes are not used for multi-byte characters, because they are coded using    opcodes are not used for multi-byte characters, because they are coded using
# Line 3092  if (next >= 0) switch(op_code) Line 3092  if (next >= 0) switch(op_code)
3092      }      }
3093    else    else
3094  #endif  /* SUPPORT_UTF */  #endif  /* SUPPORT_UTF */
3095    return (c == TABLE_GET(next, cd->fcc, next));  /* Non-UTF-8 mode */    return (c == (int)(TABLE_GET((unsigned int)next, cd->fcc, next)));  /* Non-UTF-8 mode */
3096    
3097    /* Note that OP_DIGIT etc. are generated only when PCRE_UCP is *not* set.    /* Note that OP_DIGIT etc. are generated only when PCRE_UCP is *not* set.
3098    When it is set, \d etc. are converted into OP_(NOT_)PROP codes. */    When it is set, \d etc. are converted into OP_(NOT_)PROP codes. */
# Line 4571  for (;; ptr++) Line 4571  for (;; ptr++)
4571  #endif  #endif
4572            {            {
4573            unsigned int othercase;            unsigned int othercase;
4574            if ((othercase = UCD_OTHERCASE(c)) != c)            if ((int)(othercase = UCD_OTHERCASE(c)) != c)
4575              {              {
4576              *class_uchardata++ = XCL_SINGLE;              *class_uchardata++ = XCL_SINGLE;
4577              class_uchardata += PRIV(ord2utf)(othercase, class_uchardata);              class_uchardata += PRIV(ord2utf)(othercase, class_uchardata);

Legend:
Removed from v.903  
changed lines
  Added in v.904

  ViewVC Help
Powered by ViewVC 1.1.5