1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert "* sprintf.c (rb_str_format): fix: sprintf with hex format and"

This reverts commit a160986d90.
Revert wrong commit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-10-15 08:31:58 +00:00
parent 6a443e2eb2
commit 8a0cd16de1
4 changed files with 14 additions and 19 deletions

View file

@ -190,7 +190,7 @@ class TestSprintfComb < Test::Unit::TestCase
if digits.last != radix-1
digits << (radix-1)
end
sign = '..' unless precision
sign = '..'
else
sign = '-'
end
@ -222,8 +222,8 @@ class TestSprintfComb < Test::Unit::TestCase
end
end
if type == 'o' && hs
if digits.empty? || digits.last != 0
prefix = '0'
if digits.empty? || digits.last != d
digits << d
end
end