diff options
author | zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-19 21:23:42 +0000 |
---|---|---|
committer | zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-19 21:23:42 +0000 |
commit | c5cf628e95d7622f92212b03fa5aad9d2fcab5c2 (patch) | |
tree | e18a93f288079b67e8fe0f06cbba26fcc152df73 | |
parent | f50b9070857052a77bebf6b4957d3a783068635b (diff) | |
download | pcre-c5cf628e95d7622f92212b03fa5aad9d2fcab5c2.tar.gz |
minor fixes
git-svn-id: svn://vcs.exim.org/pcre/code/branches/pcre16@812 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r-- | pcre_compile.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pcre_compile.c b/pcre_compile.c index 6267376..49e023f 100644 --- a/pcre_compile.c +++ b/pcre_compile.c @@ -1195,7 +1195,7 @@ if (c == CHAR_LEFT_CURLY_BRACKET) *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 @@ for (;; ptr++) #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 |