summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
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 c4c3da9bba..32b9f1118c 100644
--- a/time.c
+++ b/time.c
@@ -218,7 +218,7 @@ obj2long(obj)
VALUE obj;
{
if (TYPE(obj) == T_STRING) {
- obj = rb_str2inum(obj, 10);
+ obj = rb_str_to_inum(obj, 10, Qfalse);
}
return NUM2LONG(obj);