summaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-10 08:23:13 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-10 08:23:13 +0000
commit6b8844dd4be6384ca2fa63591fd91a0399bc77f2 (patch)
tree9610f1fec309db355e36aa806e92df7a479fa28f /numeric.c
parent6ac361604b02987a626410049edd743a2e8c0e45 (diff)
downloadruby-6b8844dd4be6384ca2fa63591fd91a0399bc77f2.tar.gz
ruby-6b8844dd4be6384ca2fa63591fd91a0399bc77f2.tar.xz
ruby-6b8844dd4be6384ca2fa63591fd91a0399bc77f2.zip
* eval.c (eval): warning during eval should not cause deadlock.
[ruby-talk:98651] * eval.c (rb_eval): raise TypeError exception for superclass mismatch. [ruby-dev:39567] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index f7439ec34..e3afca6ee 100644
--- a/numeric.c
+++ b/numeric.c
@@ -502,7 +502,7 @@ flo_to_s(flt)
avalue = fabs(value);
if (avalue < 1.0e-7 || avalue >= 1.0e15) {
- fmt = "%.16e";
+ fmt = "%.15e";
}
sprintf(buf, fmt, value);
if (!(e = strchr(buf, 'e'))) {