stage1: fix compilation on 32-bit arm

This commit is contained in:
Andrew Kelley 2020-03-01 03:27:09 -05:00
parent ae99fabfe4
commit b99c6d56da
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -1073,8 +1073,8 @@ static Error set_file_times(OsFile file, OsTimeStamp ts) {
return ErrorNone;
#else
struct timespec times[2] = {
{ ts.sec, ts.nsec },
{ ts.sec, ts.nsec },
{ (time_t)ts.sec, (time_t)ts.nsec },
{ (time_t)ts.sec, (time_t)ts.nsec },
};
if (futimens(file, times) == -1) {
switch (errno) {