Skip to content

Commit

Permalink
mruby-sprintf: format specifiers o,u,x,b ignore sign(+); ref #3148
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Apr 23, 2016
1 parent e5c2013 commit c522907
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mrbgems/mruby-sprintf/src/sprintf.c
Expand Up @@ -770,15 +770,7 @@ mrb_str_format(mrb_state *mrb, int argc, const mrb_value *argv, mrb_value fmt)
switch (*p) { switch (*p) {
case 'd': case 'd':
case 'i': case 'i':
case 'u':
sign = 1; break; sign = 1; break;
case 'o':
case 'x':
case 'X':
case 'b':
case 'B':
if (flags&(FPLUS|FSPACE)) sign = 1;
break;
default: default:
break; break;
} }
Expand Down

0 comments on commit c522907

Please sign in to comment.