Permalink
Browse files

mruby-sprintf: format specifiers o,u,x,b ignore sign(+); ref #3148

  • Loading branch information...
matz committed Apr 23, 2016
1 parent e5c2013 commit c5229074bb5d6ad426e968bb5e4a6bf38abdf059
Showing with 0 additions and 8 deletions.
  1. +0 −8 mrbgems/mruby-sprintf/src/sprintf.c
@@ -770,15 +770,7 @@ mrb_str_format(mrb_state *mrb, int argc, const mrb_value *argv, mrb_value fmt)
switch (*p) {
case 'd':
case 'i':
case 'u':
sign = 1; break;
case 'o':
case 'x':
case 'X':
case 'b':
case 'B':
if (flags&(FPLUS|FSPACE)) sign = 1;
break;
default:
break;
}

0 comments on commit c522907

Please sign in to comment.