aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-15 06:26:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-15 06:26:52 +0000
commite0d9c0172b3a3280c6cfe3433219c22142c76567 (patch)
tree3c7e3c69dfb58587316b60283a3590d0ed7a01b9 /ext
parent1179912b17f89097315f0f1eae9e9c0d3016dc51 (diff)
downloadruby-e0d9c0172b3a3280c6cfe3433219c22142c76567.tar.gz
date_core.c: remove assert
* ext/date/date_core.c (decode_jd): do not assert type of argument. just try to convert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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 caf2b936d8..12240d7457 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;
}