ruby-changes:43347
From: nobu <ko1@a...>
Date: Wed, 15 Jun 2016 15:26:58 +0900 (JST)
Subject: [ruby-changes:43347] nobu:r55421 (trunk): date_core.c: remove assert
nobu 2016-06-15 15:26:52 +0900 (Wed, 15 Jun 2016) New Revision: 55421 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55421 Log: date_core.c: remove assert * ext/date/date_core.c (decode_jd): do not assert type of argument. just try to convert. Modified files: trunk/ext/date/date_core.c Index: ext/date/date_core.c =================================================================== --- ext/date/date_core.c (revision 55420) +++ ext/date/date_core.c (revision 55421) @@ -1360,10 +1360,8 @@ encode_year(VALUE nth, int y, double sty https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L1360 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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/