summaryrefslogtreecommitdiff
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, 0 insertions, 2 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c
index caf2b93..12240d7 100644
--- a/ext/date/date_core.c
+++ b/ext/date/date_core.c
@@ -1360,10 +1360,8 @@ encode_year(VALUE nth, int y, double style,
static void
decode_jd(VALUE jd, VALUE *nth, int *rjd)
{
- assert(RB_INTEGER_TYPE_P(jd));
*nth = f_idiv(jd, INT2FIX(CM_PERIOD));
if (f_zero_p(*nth)) {
- assert(FIXNUM_P(jd));
*rjd = FIX2INT(jd);
return;
}