mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix printf format conversion specifiers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d2b7c0797
commit
d5b81e6844
4 changed files with 13 additions and 13 deletions
|
@ -5652,7 +5652,7 @@ dump_disasm_list(struct iseq_link_element *link)
|
||||||
{
|
{
|
||||||
iobj = (INSN *)link;
|
iobj = (INSN *)link;
|
||||||
str = insn_data_to_s_detail(iobj);
|
str = insn_data_to_s_detail(iobj);
|
||||||
printf("%04d %-65s(%4d)\n", pos, StringValueCStr(str), iobj->line_no);
|
printf("%04d %-65s(%4u)\n", pos, StringValueCStr(str), iobj->line_no);
|
||||||
pos += insn_data_length(iobj);
|
pos += insn_data_length(iobj);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4842,11 +4842,11 @@ out_side:
|
||||||
space_error:
|
space_error:
|
||||||
#ifdef BIGDECIMAL_DEBUG
|
#ifdef BIGDECIMAL_DEBUG
|
||||||
if (gfDebug) {
|
if (gfDebug) {
|
||||||
printf(" word_a=%lu\n", word_a);
|
printf(" word_a=%"PRIuSIZE"\n", word_a);
|
||||||
printf(" word_b=%lu\n", word_b);
|
printf(" word_b=%"PRIuSIZE"\n", word_b);
|
||||||
printf(" word_c=%lu\n", word_c);
|
printf(" word_c=%"PRIuSIZE"\n", word_c);
|
||||||
printf(" word_r=%lu\n", word_r);
|
printf(" word_r=%"PRIuSIZE"\n", word_r);
|
||||||
printf(" ind_r =%lu\n", ind_r);
|
printf(" ind_r =%"PRIuSIZE"\n", ind_r);
|
||||||
}
|
}
|
||||||
#endif /* BIGDECIMAL_DEBUG */
|
#endif /* BIGDECIMAL_DEBUG */
|
||||||
rb_bug("ERROR(VpDivd): space for remainder too small.");
|
rb_bug("ERROR(VpDivd): space for remainder too small.");
|
||||||
|
|
|
@ -507,7 +507,7 @@ getpage(register DBM *db, register long int hash)
|
||||||
while (dbit < db->maxbno && getdbit(db, dbit))
|
while (dbit < db->maxbno && getdbit(db, dbit))
|
||||||
dbit = 2 * dbit + ((hash & ((long) 1 << hbit++)) ? 2 : 1);
|
dbit = 2 * dbit + ((hash & ((long) 1 << hbit++)) ? 2 : 1);
|
||||||
|
|
||||||
debug(("dbit: %d...", dbit));
|
debug(("dbit: %ld...", dbit));
|
||||||
|
|
||||||
db->curbit = dbit;
|
db->curbit = dbit;
|
||||||
db->hmask = masks[hbit];
|
db->hmask = masks[hbit];
|
||||||
|
@ -532,7 +532,7 @@ getpage(register DBM *db, register long int hash)
|
||||||
}
|
}
|
||||||
db->pagbno = pagb;
|
db->pagbno = pagb;
|
||||||
|
|
||||||
debug(("pag read: %d\n", pagb));
|
debug(("pag read: %ld\n", pagb));
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -552,7 +552,7 @@ getdbit(register DBM *db, register long int dbit)
|
||||||
return 0;
|
return 0;
|
||||||
db->dirbno = dirb;
|
db->dirbno = dirb;
|
||||||
|
|
||||||
debug(("dir read: %d\n", dirb));
|
debug(("dir read: %ld\n", dirb));
|
||||||
}
|
}
|
||||||
|
|
||||||
return db->dirbuf[c % DBLKSIZ] & (1 << (dbit % BYTESIZ));
|
return db->dirbuf[c % DBLKSIZ] & (1 << (dbit % BYTESIZ));
|
||||||
|
@ -573,7 +573,7 @@ setdbit(register DBM *db, register long int dbit)
|
||||||
return 0;
|
return 0;
|
||||||
db->dirbno = dirb;
|
db->dirbno = dirb;
|
||||||
|
|
||||||
debug(("dir read: %d\n", dirb));
|
debug(("dir read: %ld\n", dirb));
|
||||||
}
|
}
|
||||||
|
|
||||||
db->dirbuf[c % DBLKSIZ] |= (1 << (dbit % BYTESIZ));
|
db->dirbuf[c % DBLKSIZ] |= (1 << (dbit % BYTESIZ));
|
||||||
|
|
|
@ -1292,7 +1292,7 @@ onig_print_statistics(FILE* f)
|
||||||
int i;
|
int i;
|
||||||
fprintf(f, " count prev time\n");
|
fprintf(f, " count prev time\n");
|
||||||
for (i = 0; OnigOpInfo[i].opcode >= 0; i++) {
|
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);
|
OpCounter[i], OpPrevCounter[i], OpTime[i], OnigOpInfo[i].name);
|
||||||
}
|
}
|
||||||
fprintf(f, "\nmax stack depth: %d\n", MaxStackDepth);
|
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
|
#ifdef ONIG_DEBUG
|
||||||
if (r != ONIG_MISMATCH)
|
if (r != ONIG_MISMATCH)
|
||||||
fprintf(stderr, "onig_search: error %"PRIdPTR"\n", r);
|
fprintf(stderr, "onig_search: error %"PRIdPTRDIFF"\n", r);
|
||||||
#endif
|
#endif
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
@ -4300,7 +4300,7 @@ onig_search_gpos(regex_t* reg, const UChar* str, const UChar* end,
|
||||||
ONIG_STATE_DEC_THREAD(reg);
|
ONIG_STATE_DEC_THREAD(reg);
|
||||||
#ifdef ONIG_DEBUG
|
#ifdef ONIG_DEBUG
|
||||||
if (r != ONIG_MISMATCH)
|
if (r != ONIG_MISMATCH)
|
||||||
fprintf(stderr, "onig_search: error %"PRIdPTR"\n", r);
|
fprintf(stderr, "onig_search: error %"PRIdPTRDIFF"\n", r);
|
||||||
#endif
|
#endif
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue