diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-01-16 17:20:52 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-01-16 17:21:55 +0900 |
| commit | c83069860a4b5f3aa2c64621e52f7877fe2a453a (patch) | |
| tree | d74c1c5cd163ea4b48f835672b249eda023bd557 /mrbgems/mruby-sprintf/src | |
| parent | c59ef59ad9a779473f52d23411192aa392741162 (diff) | |
| download | mruby-c83069860a4b5f3aa2c64621e52f7877fe2a453a.tar.gz mruby-c83069860a4b5f3aa2c64621e52f7877fe2a453a.zip | |
Dots is not needed for base 10 negative numbers; fix #3400
Diffstat (limited to 'mrbgems/mruby-sprintf/src')
| -rw-r--r-- | mrbgems/mruby-sprintf/src/sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-sprintf/src/sprintf.c b/mrbgems/mruby-sprintf/src/sprintf.c index af0ca08ba..616277f5e 100644 --- a/mrbgems/mruby-sprintf/src/sprintf.c +++ b/mrbgems/mruby-sprintf/src/sprintf.c @@ -891,7 +891,7 @@ retry: } else { s = nbuf; - if (v < 0) { + if (base != 10 && v < 0) { dots = 1; } switch (base) { |
