Project

General

Profile

« Previous | Next » 

Revision 6f8f950c

Added by nobu (Nobuyoshi Nakada) about 8 years ago

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).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e