aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--numeric.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f455c53203..57733d8324 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jul 27 16:27:38 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (flo_cmp): typo.
+
Tue Jul 27 16:09:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
* class.c, compile.c, dir.c, file.c, iseq.c, parse.y, random.c:
diff --git a/numeric.c b/numeric.c
index 81be28cc33..740ef5442d 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1016,7 +1016,8 @@ rb_dbl_cmp(double a, double b)
static VALUE
flo_cmp(VALUE x, VALUE y)
{
- double a, b, i;
+ double a, b;
+ VALUE i;
a = RFLOAT_VALUE(x);
if (isnan(a)) return Qnil;