File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 15
15
namespace LIBC_NAMESPACE {
16
16
namespace time_units {
17
17
LIBC_INLINE constexpr time_t operator " " _s_ns(unsigned long long s) {
18
- return s * 1'000'000'000 ;
18
+ return static_cast < time_t >( s * 1'000'000'000 ) ;
19
19
}
20
20
LIBC_INLINE constexpr time_t operator " " _s_us(unsigned long long s) {
21
- return s * 1'000'000 ;
21
+ return static_cast < time_t >( s * 1'000'000 ) ;
22
22
}
23
23
LIBC_INLINE constexpr time_t operator " " _s_ms(unsigned long long s) {
24
- return s * 1'000 ;
24
+ return static_cast < time_t >( s * 1'000 ) ;
25
25
}
26
26
LIBC_INLINE constexpr time_t operator " " _ms_ns(unsigned long long ms) {
27
- return ms * 1'000'000 ;
27
+ return static_cast < time_t >( ms * 1'000'000 ) ;
28
28
}
29
29
LIBC_INLINE constexpr time_t operator " " _ms_us(unsigned long long ms) {
30
- return ms * 1'000 ;
30
+ return static_cast < time_t >( ms * 1'000 ) ;
31
31
}
32
32
LIBC_INLINE constexpr time_t operator " " _us_ns(unsigned long long us) {
33
- return us * 1'000 ;
33
+ return static_cast < time_t >( us * 1'000 ) ;
34
34
}
35
35
} // namespace time_units
36
36
} // namespace LIBC_NAMESPACE
You can’t perform that action at this time.
0 commit comments