aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-24 12:21:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-24 12:21:52 +0000
commitc5b9c7f525d3c4daa5745d216053a5a36e8e90a9 (patch)
tree54f1af482cb17aafb03d2bfd745ba2fd96b00280 /time.c
parentb9725a9cec24ba3bafcb54a250eaf4bba1bfcd21 (diff)
downloadruby-c5b9c7f525d3c4daa5745d216053a5a36e8e90a9.tar.gz
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
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 a99444fce1..30bb371781 100644
--- a/time.c
+++ b/time.c
@@ -2445,7 +2445,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)) {