summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-26 05:33:01 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-26 05:33:01 (GMT)
commitd5b81e68442fc5a67fdcf7bd19c660b61fe0db7e (patch)
treee98e6edbcd2c1d546da49955353e42d73eb036e3 /regexec.c
parent3d2b7c0797ff82f6c8d70b1951e64a3f83750c81 (diff)
fix printf format conversion specifiers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regexec.c b/regexec.c
index 1336468..1ec337f 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1292,7 +1292,7 @@ onig_print_statistics(FILE* f)
int i;
fprintf(f, " count prev time\n");
for (i = 0; OnigOpInfo[i].opcode >= 0; i++) {
- fprintf(f, "%8d: %8d: %10ld: %s\n",
+ fprintf(f, "%8d: %8d: %10lu: %s\n",
OpCounter[i], OpPrevCounter[i], OpTime[i], OnigOpInfo[i].name);
}
fprintf(f, "\nmax stack depth: %d\n", MaxStackDepth);
@@ -4290,7 +4290,7 @@ onig_search_gpos(regex_t* reg, const UChar* str, const UChar* end,
#ifdef ONIG_DEBUG
if (r != ONIG_MISMATCH)
- fprintf(stderr, "onig_search: error %"PRIdPTR"\n", r);
+ fprintf(stderr, "onig_search: error %"PRIdPTRDIFF"\n", r);
#endif
return r;
@@ -4300,7 +4300,7 @@ onig_search_gpos(regex_t* reg, const UChar* str, const UChar* end,
ONIG_STATE_DEC_THREAD(reg);
#ifdef ONIG_DEBUG
if (r != ONIG_MISMATCH)
- fprintf(stderr, "onig_search: error %"PRIdPTR"\n", r);
+ fprintf(stderr, "onig_search: error %"PRIdPTRDIFF"\n", r);
#endif
return r;