summaryrefslogtreecommitdiff
path: root/lib/xsd
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-05 05:42:04 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-05 05:42:04 +0000
commit16658578a55558271c76f305e62f526e6296c8e3 (patch)
tree1c0c636a4dbe03eeab831aa73fff92ca39ff4939 /lib/xsd
parentd50d6d396ae47d78a9d8d07a754868f35492d7fc (diff)
* lib/xsd/datatypes.rb: Rational -> Decimal string bug fix.
* test/soap/marshal/test_marshal.rb: ditto. * test/soap/calc/test_calc_cgi.rb: add Config::CONFIG["EXEECT"] to RUBYBIN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/xsd')
-rw-r--r--lib/xsd/datatypes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xsd/datatypes.rb b/lib/xsd/datatypes.rb
index 0be64fe635..a1e3e55624 100644
--- a/lib/xsd/datatypes.rb
+++ b/lib/xsd/datatypes.rb
@@ -600,7 +600,7 @@ private
year, @data.mon, @data.mday, @data.hour, @data.min, @data.sec)
if @data.sec_fraction.nonzero?
fr = @data.sec_fraction * SecInDay
- shiftsize = fr.denominator.to_s.size
+ shiftsize = fr.denominator.to_s.size + 1
fr_s = (fr * (10 ** shiftsize)).to_i.to_s
s << '.' << '0' * (shiftsize - fr_s.size) << fr_s.sub(/0+$/, '')
end