diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-01 03:27:09 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-01 03:27:09 -0500 |
| commit | b99c6d56da3d2db995c268fb07f48548ea6d1148 (patch) | |
| tree | 16ec58240010f3fd10e75fe2024992ea6b3519de /src/os.cpp | |
| parent | ae99fabfe41ffab1ea49328a40521a4d76c42cf6 (diff) | |
| download | zig-b99c6d56da3d2db995c268fb07f48548ea6d1148.tar.gz zig-b99c6d56da3d2db995c268fb07f48548ea6d1148.zip | |
stage1: fix compilation on 32-bit arm
Diffstat (limited to 'src/os.cpp')
| -rw-r--r-- | src/os.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os.cpp b/src/os.cpp index 8e0bcc433b..f65a578e17 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -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) { |
