summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-27 11:44:17 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-27 11:44:17 +0000
commit7015fcf9f88ad4f0131439d6c1c30cef320f9c8c (patch)
treece04fa75fb9063545feba28ff517a2f54c703500 /time.c
parent244096b9a14f576de0f68ac4b26556ff09eafc3d (diff)
merge revision(s) 57172: [Backport #13066]
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/branches/ruby_2_2@57225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index 4af193d19a..ac2267a9f8 100644
--- a/time.c
+++ b/time.c
@@ -2562,7 +2562,7 @@ obj2subsecx(VALUE obj, VALUE *subsecx)
return obj2ubits(obj, 6); /* vtm->sec */
}
-static long
+static VALUE
usec2subsecx(VALUE obj)
{
if (RB_TYPE_P(obj, T_STRING)) {