summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/process.c b/process.c
index da09b15194..551bfd5d84 100644
--- a/process.c
+++ b/process.c
@@ -6759,7 +6759,8 @@ rb_clock_gettime(int argc, VALUE *argv)
}
t = t * sTimebaseInfo.numer / sTimebaseInfo.denom;
- ts.tv_sec = t / 1000000000;
+ /* TODO: time_t overflow */
+ ts.tv_sec = (time_t)(t / 1000000000);
ts.tv_nsec = t % 1000000000;
goto success;
}