summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-sprintf/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-09-26 06:30:55 +0900
committerGitHub <[email protected]>2019-09-26 06:30:55 +0900
commit0d661bcca62bb29b07924a4ceb84e6adfd04be79 (patch)
tree48b4db1ad9cce55e77c4e82477d3ae8190d02901 /mrbgems/mruby-sprintf/src
parent9bf193b49a43abb9439630786a8312ac876d2cbe (diff)
parent9f6ba4bfa1ddf096a6b067824dd7727c4994ae8b (diff)
downloadmruby-0d661bcca62bb29b07924a4ceb84e6adfd04be79.tar.gz
mruby-0d661bcca62bb29b07924a4ceb84e6adfd04be79.zip
Merge pull request #4731 from dearblue/consistent-type
Keep the type of `posarg` consistent
Diffstat (limited to 'mrbgems/mruby-sprintf/src')
-rw-r--r--mrbgems/mruby-sprintf/src/sprintf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mrbgems/mruby-sprintf/src/sprintf.c b/mrbgems/mruby-sprintf/src/sprintf.c
index 5e0a9f525..18027b32d 100644
--- a/mrbgems/mruby-sprintf/src/sprintf.c
+++ b/mrbgems/mruby-sprintf/src/sprintf.c
@@ -155,17 +155,17 @@ check_next_arg(mrb_state *mrb, int posarg, int nextarg)
}
static void
-check_pos_arg(mrb_state *mrb, mrb_int posarg, mrb_int n)
+check_pos_arg(mrb_state *mrb, int posarg, mrb_int n)
{
if (posarg > 0) {
- mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%i) after unnumbered(%i)",
+ mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%d) after unnumbered(%d)",
n, posarg);
}
if (posarg == -2) {
- mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%i) after named", n);
+ mrb_raisef(mrb, E_ARGUMENT_ERROR, "numbered(%d) after named", n);
}
if (n < 1) {
- mrb_raisef(mrb, E_ARGUMENT_ERROR, "invalid index - %i$", n);
+ mrb_raisef(mrb, E_ARGUMENT_ERROR, "invalid index - %d$", n);
}
}