[Pcre-svn] [1064] code/trunk/pcre_compile.c: pcre32: compile…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1064] code/trunk/pcre_compile.c: pcre32: compile: Use uint32 to store characters in compile_branch
Revision: 1064
          http://vcs.pcre.org/viewvc?view=rev&revision=1064
Author:   chpe
Date:     2012-10-16 16:54:12 +0100 (Tue, 16 Oct 2012)


Log Message:
-----------
pcre32: compile: Use uint32 to store characters in compile_branch

Do this to preserve any 32-bit data character in 32-bit non-UTF-32 mode.

Modified Paths:
--------------
    code/trunk/pcre_compile.c


Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2012-10-16 15:54:09 UTC (rev 1063)
+++ code/trunk/pcre_compile.c    2012-10-16 15:54:12 UTC (rev 1064)
@@ -2907,10 +2907,10 @@
 */


static int
-get_othercase_range(unsigned int *cptr, unsigned int d, unsigned int *ocptr,
- unsigned int *odptr)
+get_othercase_range(pcre_uint32 *cptr, pcre_uint32 d, pcre_uint32 *ocptr,
+ pcre_uint32 *odptr)
{
-unsigned int c, othercase, next;
+pcre_uint32 c, othercase, next;
int co;

 /* Find the first character that has an other case. If it has multiple other 
@@ -3692,7 +3692,7 @@
 int options = *optionsptr;               /* May change dynamically */
 int after_manual_callout = 0;
 int length_prevgroup = 0;
-register int c;
+register pcre_uint32 c;
 int escape;
 register pcre_uchar *code = *codeptr;
 pcre_uchar *last_code = code;