diff options
author | xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com> | 2021-03-14 20:10:01 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-03-14 20:10:01 +0900 |
commit | 3ac28de5414c81a0da8c8ec969ea74db5a0f1b0f (patch) | |
tree | 1d0c74271c75b4e4cebc7a956cb04204967687be /file.c | |
parent | c7e6914b3947cdf0e9c0d28d1162a084d0138887 (diff) | |
download | ruby-3ac28de5414c81a0da8c8ec969ea74db5a0f1b0f.tar.gz |
Explicitly cast __s64 to time_t [Bug #17645]
A workaround of shorten-64-to-32 error where 32-bit linux.
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1253,7 +1253,7 @@ statx_birthtime(const struct statx *stx, VALUE fname) /* birthtime is not supported on the filesystem */ statx_notimplement("birthtime"); } - return rb_time_nano_new(stx->stx_btime.tv_sec, stx->stx_btime.tv_nsec); + return rb_time_nano_new((time_t)stx->stx_btime.tv_sec, stx->stx_btime.tv_nsec); } typedef struct statx statx_data; |