[Pcre-svn] [1091] code/trunk/pcre_dfa_exec.c: pcre32: debug:…

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [1091] code/trunk/pcre_dfa_exec.c: pcre32: debug: Use uint32 for characters
Revision: 1091
          http://vcs.pcre.org/viewvc?view=rev&revision=1091
Author:   chpe
Date:     2012-10-16 16:55:52 +0100 (Tue, 16 Oct 2012)


Log Message:
-----------
pcre32: debug: Use uint32 for characters

Modified Paths:
--------------
    code/trunk/pcre_dfa_exec.c


Modified: code/trunk/pcre_dfa_exec.c
===================================================================
--- code/trunk/pcre_dfa_exec.c    2012-10-16 15:55:48 UTC (rev 1090)
+++ code/trunk/pcre_dfa_exec.c    2012-10-16 15:55:52 UTC (rev 1091)
@@ -302,13 +302,13 @@
 static void
 pchars(const pcre_uchar *p, int length, FILE *f)
 {
-int c;
+pcre_uint32 c;
 while (length-- > 0)
   {
   if (isprint(c = *(p++)))
     fprintf(f, "%c", c);
   else
-    fprintf(f, "\\x%02x", c);
+    fprintf(f, "\\x{%02x}", c);
   }
 }
 #endif