Revision: 1128
http://vcs.pcre.org/viewvc?view=rev&revision=1128
Author: chpe
Date: 2012-10-18 19:35:08 +0100 (Thu, 18 Oct 2012)
Log Message:
-----------
Make ucp_gentype unsigned int
It's compared against unsigned values, so change it to unsigned to quit
a few -Wsign-compare warnings.
Modified Paths:
--------------
code/trunk/pcre_internal.h
code/trunk/pcre_tables.c
Modified: code/trunk/pcre_internal.h
===================================================================
--- code/trunk/pcre_internal.h 2012-10-18 18:35:05 UTC (rev 1127)
+++ code/trunk/pcre_internal.h 2012-10-18 18:35:08 UTC (rev 1128)
@@ -2711,7 +2711,7 @@
extern const ucd_record PRIV(ucd_records)[];
extern const pcre_uint8 PRIV(ucd_stage1)[];
extern const pcre_uint16 PRIV(ucd_stage2)[];
-extern const int PRIV(ucp_gentype)[];
+extern const pcre_uint32 PRIV(ucp_gentype)[];
extern const pcre_uint32 PRIV(ucp_gbtable)[];
#ifdef SUPPORT_JIT
extern const int PRIV(ucp_typerange)[];
Modified: code/trunk/pcre_tables.c
===================================================================
--- code/trunk/pcre_tables.c 2012-10-18 18:35:05 UTC (rev 1127)
+++ code/trunk/pcre_tables.c 2012-10-18 18:35:08 UTC (rev 1128)
@@ -104,7 +104,7 @@
/* Table to translate from particular type value to the general value. */
-const int PRIV(ucp_gentype)[] = {
+const pcre_uint32 PRIV(ucp_gentype)[] = {
ucp_C, ucp_C, ucp_C, ucp_C, ucp_C, /* Cc, Cf, Cn, Co, Cs */
ucp_L, ucp_L, ucp_L, ucp_L, ucp_L, /* Ll, Lu, Lm, Lo, Lt */
ucp_M, ucp_M, ucp_M, /* Mc, Me, Mn */