[libc] Fix utimes build when full_build=OFF (#149668) We might pull a header from the host where tv_nsec is not a long, so compilation would fail with an implicit conversion error.
diff --git a/libc/src/sys/time/linux/utimes.cpp b/libc/src/sys/time/linux/utimes.cpp index ed37b42..9c00ce9 100644 --- a/libc/src/sys/time/linux/utimes.cpp +++ b/libc/src/sys/time/linux/utimes.cpp
@@ -59,8 +59,10 @@ ts[1].tv_sec = times[1].tv_sec; // convert u-seconds to nanoseconds - ts[0].tv_nsec = times[0].tv_usec * 1000; - ts[1].tv_nsec = times[1].tv_usec * 1000; + ts[0].tv_nsec = + static_cast<decltype(ts[0].tv_nsec)>(times[0].tv_usec * 1000); + ts[1].tv_nsec = + static_cast<decltype(ts[1].tv_nsec)>(times[1].tv_usec * 1000); ts_ptr = ts; }