aboutsummaryrefslogtreecommitdiffstats
path: root/ext/date/date_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r--ext/date/date_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c
index decaec2d59..6301fe60ee 100644
--- a/ext/date/date_core.c
+++ b/ext/date/date_core.c
@@ -3438,7 +3438,7 @@ date_initialize(int argc, VALUE *argv, VALUE self)
check_numeric(vd, "day");
num2int_with_frac(d, positive_inf);
case 2:
- check_numeric(vd, "month");
+ check_numeric(vm, "month");
m = NUM2INT(vm);
case 1:
check_numeric(vy, "year");