summaryrefslogtreecommitdiff
path: root/src/pcre2_printint.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2016-07-27 18:00:12 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2016-07-27 18:00:12 +0000
commitb9e7721c74fae901b3c6821e959b4b91e404370e (patch)
tree39cc89bce99673aa1592dfc0313b0fe6fbcb6bbd /src/pcre2_printint.c
parentdcf638cb581fe943954ee94bc624a69d36bdfac6 (diff)
downloadpcre2-b9e7721c74fae901b3c6821e959b4b91e404370e.tar.gz
Tidy code to get rid of compiler warnings.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@550 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_printint.c')
-rw-r--r--src/pcre2_printint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcre2_printint.c b/src/pcre2_printint.c
index 40a633c..2d30926 100644
--- a/src/pcre2_printint.c
+++ b/src/pcre2_printint.c
@@ -214,7 +214,7 @@ while (*ptr != '\0')
static void
print_custring_bylen(FILE *f, PCRE2_SPTR ptr, PCRE2_UCHAR len)
{
-while (len-- > 0)
+for (; len > 0; len--)
{
register uint32_t c = *ptr++;
if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x{%x}", c);