[Pcre-svn] [1137] code/trunk/pcre_printint.c: Fix some sign-… |
Questo messaggio è parte di questo thread: | |
---|---|
il thread completo ordinato per data | |
http://vcs.pcre.org/viewvc?view=rev&revision=1137 Author: chpe Date: 2012-10-18 20:08:11 +0100 (Thu, 18 Oct 2012)
Modified Paths: -------------- code/trunk/pcre_printint.c
Modified: code/trunk/pcre_printint.c =================================================================== --- code/trunk/pcre_printint.c 2012-10-18 18:35:41 UTC (rev 1136) +++ code/trunk/pcre_printint.c 2012-10-18 19:08:11 UTC (rev 1137) @@ -114,7 +114,7 @@ * Print single- or multi-byte character * *************************************************/
if (print_lengths) fprintf(f, "%3d ", (int)(code - codestart)); @@ -616,7 +616,8 @@ case OP_NCLASS: case OP_XCLASS: { - int i, min, max; + int i; + unsigned int min, max; BOOL printmap; pcre_uint8 *map;
if (*code == OP_XCLASS) { - int ch; + pcre_uchar ch; while ((ch = *ccode++) != XCL_END) { if (ch == XCL_PROP) { - int ptype = *ccode++; - int pvalue = *ccode++; + unsigned int ptype = *ccode++; + unsigned int pvalue = *ccode++; fprintf(f, "\\p{%s}", get_ucpname(ptype, pvalue)); } else if (ch == XCL_NOTPROP) { - int ptype = *ccode++; - int pvalue = *ccode++; + unsigned int ptype = *ccode++; + unsigned int pvalue = *ccode++; fprintf(f, "\\P{%s}", get_ucpname(ptype, pvalue)); } else @@ -717,8 +718,8 @@ case OP_CRMINRANGE: min = GET2(ccode,1); max = GET2(ccode,1 + IMM2_SIZE); - if (max == 0) fprintf(f, "{%d,}", min); - else fprintf(f, "{%d,%d}", min, max); + if (max == 0) fprintf(f, "{%u,}", min); + else fprintf(f, "{%u,%u}", min, max); if (*ccode == OP_CRMINRANGE) fprintf(f, "?"); extra += priv_OP_lengths[*ccode]; break;
Questo messaggio è stato inviato alle seguenti mailing lists: | ||||
---|---|---|---|---|
Pcre-svn Informazioni sulla Mailing List | Messaggi correlati | [Pcre-svn] [1136] code/trunk/pcregrep.c: pcregrep: Fix unused variable warning | [Pcre-svn] [1138] code/trunk/pcre32_utf32_utils.c: Fix some sign-conversion warnings |
Tahini and Hummus and Cumin Development Archives amministrato da cumin Admins | Lurker (versione 2.3) |