Skip to content
Permalink
Browse files
Use MRB_PRId instead of d for mrb_int decimal specifier; ref #3701
  • Loading branch information
matz committed Jun 16, 2017
1 parent 6fdf2b0 commit 0411cea2dfaea223becfdb8da44e29e81325c331
Showing 1 changed file with 1 addition and 1 deletion.
@@ -611,7 +611,7 @@ mrb_str_upto(mrb_state *mrb, mrb_value beg)

while (bi <= ei) {
if (excl && bi == ei) break;
snprintf(buf, max_width+1, "%.*d", (int)min_width, bi);
snprintf(buf, max_width+1, "%.*" MRB_PRId, (int)min_width, bi);
mrb_yield(mrb, block, mrb_str_new(mrb, buf, strlen(buf)));
mrb_gc_arena_restore(mrb, ai);
bi++;

0 comments on commit 0411cea

Please sign in to comment.