/[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 778 by ph10, Wed Nov 30 18:10:27 2011 UTC revision 779 by ph10, Fri Dec 2 10:39:32 2011 UTC
# Line 3683  for (;; ptr++) Line 3683  for (;; ptr++)
3683    
3684        if (lengthptr != NULL)        if (lengthptr != NULL)
3685          {          {
3686          *lengthptr += class_utf8data - class_utf8data_base;          *lengthptr += (int)(class_utf8data - class_utf8data_base);
3687          class_utf8data = class_utf8data_base;          class_utf8data = class_utf8data_base;
3688          }          }
3689    
# Line 4382  for (;; ptr++) Line 4382  for (;; ptr++)
4382    
4383        /* Now fill in the complete length of the item */        /* Now fill in the complete length of the item */
4384    
4385        PUT(previous, 1, code - previous);        PUT(previous, 1, (int)(code - previous));
4386        break;   /* End of class handling */        break;   /* End of class handling */
4387        }        }
4388  #endif  #endif
# Line 4524  for (;; ptr++) Line 4524  for (;; ptr++)
4524          {          {
4525          uschar *lastchar = code - 1;          uschar *lastchar = code - 1;
4526          while((*lastchar & 0xc0) == 0x80) lastchar--;          while((*lastchar & 0xc0) == 0x80) lastchar--;
4527          c = code - lastchar;            /* Length of UTF-8 character */          c = (int)(code - lastchar);     /* Length of UTF-8 character */
4528          memcpy(utf8_char, lastchar, c); /* Save the char */          memcpy(utf8_char, lastchar, c); /* Save the char */
4529          c |= 0x80;                      /* Flag c as a length */          c |= 0x80;                      /* Flag c as a length */
4530          }          }

Legend:
Removed from v.778  
changed lines
  Added in v.779

  ViewVC Help
Powered by ViewVC 1.1.5