aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c3
1 files changed, 2 insertions, 1 deletions
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;