Revision: 812
http://vcs.pcre.org/viewvc?view=rev&revision=812
Author: zherczeg
Date: 2011-12-19 21:23:42 +0000 (Mon, 19 Dec 2011)
Log Message:
-----------
minor fixes
Modified Paths:
--------------
code/branches/pcre16/pcre_compile.c
Modified: code/branches/pcre16/pcre_compile.c
===================================================================
--- code/branches/pcre16/pcre_compile.c 2011-12-19 14:05:44 UTC (rev 811)
+++ code/branches/pcre16/pcre_compile.c 2011-12-19 21:23:42 UTC (rev 812)
@@ -1195,7 +1195,7 @@
*negptr = TRUE;
ptr++;
}
- for (i = 0; i < (int)sizeof(name) - 1; i++)
+ for (i = 0; i < (int)(sizeof(name) / sizeof(pcre_uchar)) - 1; i++)
{
c = *(++ptr);
if (c == 0) goto ERROR_RETURN;
@@ -4568,8 +4568,7 @@
#ifdef SUPPORT_UTF
if (xclass && (!should_flip_negation || (options & PCRE_UCP) != 0))
-#endif
-#ifndef COMPILE_PCRE8
+#elif !defined COMPILE_PCRE8
if (xclass && !should_flip_negation)
#endif
#if defined SUPPORT_UTF || !defined COMPILE_PCRE8