[ruby-cvs:60022] nobu:r52869 (trunk): sprintf.c: fix garbage inserted with Rational

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Dec 3 15:33:13 JST 2015


nobu	2015-12-03 15:33:13 +0900 (Thu, 03 Dec 2015)

  New Revision: 52869

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52869

  Log:
    sprintf.c: fix garbage inserted with Rational
    
    * sprintf.c (rb_str_format): fix wrong shifting position in
      Rational conversion when not at the beginning of the result.
      [ruby-core:71806] [Bug #11766]

  Modified files:
    trunk/ChangeLog
    trunk/sprintf.c
    trunk/test/ruby/test_sprintf.rb


More information about the ruby-cvs mailing list