Skip to content
Permalink
Browse files
Dots is not needed for base 10 negative numbers; fix #3400
  • Loading branch information
matz committed Jan 16, 2017
1 parent c59ef59 commit c83069860a4b5f3aa2c64621e52f7877fe2a453a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -891,7 +891,7 @@ mrb_str_format(mrb_state *mrb, int argc, const mrb_value *argv, mrb_value fmt)
}
else {
s = nbuf;
if (v < 0) {
if (base != 10 && v < 0) {
dots = 1;
}
switch (base) {

0 comments on commit c830698

Please sign in to comment.