diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-14 11:35:52 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-14 11:35:52 +0000 |
commit | 4fdfb28e7d2e3eefc0df1e1d034fbfc932c0d2a1 (patch) | |
tree | ffdd569afe15f73e7c10521d12f7275de9a5982b /ChangeLog | |
parent | 0b572d70bcbf800e3c0da29b62bcadc99575e5e7 (diff) |
merge revision(s) 58453,58454: [Backport #13499]
Fix space flag when Inf/NaN and width==3
* sprintf.c (rb_str_format): while `"% 2f"` and `"% 4f"` result in
`" Inf"` and `" Inf"` respectively, `"% 3f"` results in
`"Inf"` (no space).
Refactor "%f" % Inf/NaN
* sprintf.c (rb_str_format): as for non-finite float, calculate
the exact needed size with the space flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@59901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,15 @@ +Thu Sep 14 20:33:52 2017 Nobuyoshi Nakada <nobu@ruby-lang.org> + + Fix space flag when Inf/NaN and width==3 + + * sprintf.c (rb_str_format): while "% 2f" and "% 4f" result in " Inf" + and " Inf" respectively, "% 3f" results in "Inf" (no space). + + Refactor "%f" % Inf/NaN + + * sprintf.c (rb_str_format): as for non-finite float, calculate the + exact needed size with the space flag. + Sun Sep 10 10:10:05 2017 SHIBATA Hiroshi <hsbt@ruby-lang.org> * lib/rubygems: fix several vulnerabilities in RubyGems; bump to version |