summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-24 03:59:23 +0200
committerGitHub <noreply@github.com>2019-07-24 03:59:23 +0200
commit3c6b1117895381c1a43e74191aba535facb0b135 (patch)
treebf76bfb674e32d83b8b99a5dd11d3757fbd646da
parent7dbc6d8f36f3b85275bed998b5e34f7d5870659e (diff)
parent7a85317ccb52479c77053e878b5a999cfa69ab41 (diff)
downloadpodman-3c6b1117895381c1a43e74191aba535facb0b135.tar.gz
podman-3c6b1117895381c1a43e74191aba535facb0b135.tar.bz2
podman-3c6b1117895381c1a43e74191aba535facb0b135.zip
Merge pull request #3634 from mheon/fix_32bit
Re-add int64 casts for ctime to fix 32-bit build
-rw-r--r--pkg/ctime/ctime_linux.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/ctime/ctime_linux.go b/pkg/ctime/ctime_linux.go
index 28ad959cf..113693e87 100644
--- a/pkg/ctime/ctime_linux.go
+++ b/pkg/ctime/ctime_linux.go
@@ -10,5 +10,6 @@ import (
func created(fi os.FileInfo) time.Time {
st := fi.Sys().(*syscall.Stat_t)
- return time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
+ //nolint
+ return time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
}