summaryrefslogtreecommitdiff
path: root/pcretest.c
diff options
context:
space:
mode:
authorchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:55:04 +0000
committerchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:55:04 +0000
commit5c14594259d68e42adf6b74d8a6c6414ebbe3d42 (patch)
tree6a1f703897f5ec4ad15a8a1955bd5e9ce75ee471 /pcretest.c
parentf75cb1a32aec8cf585db7ac9748b650d4b26e486 (diff)
downloadpcre-5c14594259d68e42adf6b74d8a6c6414ebbe3d42.tar.gz
pcre32: pcretest: Make pchar 32-bit clean
Use pcre_uint32 for characters. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1079 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcretest.c')
-rw-r--r--pcretest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcretest.c b/pcretest.c
index eba3f48..c57eae1 100644
--- a/pcretest.c
+++ b/pcretest.c
@@ -1729,7 +1729,7 @@ return(result);
/* Print a single character either literally, or as a hex escape. */
-static int pchar(int c, FILE *f)
+static int pchar(pcre_uint32 c, FILE *f)
{
if (PRINTOK(c))
{
@@ -1848,7 +1848,7 @@ if (length < 0)
while (length-- > 0)
{
- int c = *p++ & 0xffff;
+ pcre_uint32 c = *p++ & 0xffff;
#if !defined NOUTF
if (use_utf && c >= 0xD800 && c < 0xDC00 && length > 0)
{
@@ -1887,7 +1887,7 @@ if (length < 0)
while (length-- > 0)
{
- int c = *p++;
+ pcre_uint32 c = *p++;
yield += pchar(c, f);
}