time.c: fix type of usec2subsecx
* time.c (usec2subsecx): fix return type, which is a numeric object but not a long int. [ruby-dev:49912] [Bug #13066] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4e41d5dedd
commit
44a4d7b057
2
time.c
2
time.c
@ -2445,7 +2445,7 @@ obj2subsecx(VALUE obj, VALUE *subsecx)
|
|||||||
return obj2ubits(obj, 6); /* vtm->sec */
|
return obj2ubits(obj, 6); /* vtm->sec */
|
||||||
}
|
}
|
||||||
|
|
||||||
static long
|
static VALUE
|
||||||
usec2subsecx(VALUE obj)
|
usec2subsecx(VALUE obj)
|
||||||
{
|
{
|
||||||
if (RB_TYPE_P(obj, T_STRING)) {
|
if (RB_TYPE_P(obj, T_STRING)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user