Bug #4848 » date_core_num2_argc_tests.diff
ext/date/date_core.c (working copy) | ||
---|---|---|
{\
|
||
s = s##_trunc(v##s, &fr);\
|
||
if (f_nonzero_p(fr)) {\
|
||
if (argc > n)\
|
||
if (argc < n)\
|
||
rb_raise(rb_eArgError, "invalid fraction");\
|
||
fr2 = fr;\
|
||
}\
|
||
... | ... | |
{\
|
||
s = NUM2INT(s##_trunc(v##s, &fr));\
|
||
if (f_nonzero_p(fr)) {\
|
||
if (argc > n)\
|
||
if (argc < n)\
|
||
rb_raise(rb_eArgError, "invalid fraction");\
|
||
fr2 = fr;\
|
||
}\
|