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 9ecc09347c..44864ff748 100644
--- a/time.c
+++ b/time.c
@@ -2683,7 +2683,7 @@ time_s_at(rb_execution_context_t *ec, VALUE klass, VALUE time, VALUE subsec, VAL
VALUE t;
wideval_t timew;
- if (!NIL_P(subsec)) {
+ if (subsec) {
int scale = get_scale(unit);
time = num_exact(time);
t = num_exact(subsec);