From 2c4b7f6bd13998a2dc45ca95116db6eee920a657 Mon Sep 17 00:00:00 2001 From: John Howard Date: Mon, 20 Aug 2018 12:02:04 -0700 Subject: [PATCH] Fixup archive/tar_windows.go type Signed-off-by: John Howard --- archive/tar_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/tar_windows.go b/archive/tar_windows.go index 025796a7b..a3f585ac8 100644 --- a/archive/tar_windows.go +++ b/archive/tar_windows.go @@ -259,7 +259,7 @@ func fileInfoFromHeader(hdr *tar.Header) (name string, size int64, fileInfo *win if err != nil { return "", 0, nil, err } - fileInfo.FileAttributes = uintptr(attr) + fileInfo.FileAttributes = uint32(attr) } else { if hdr.Typeflag == tar.TypeDir { fileInfo.FileAttributes |= syscall.FILE_ATTRIBUTE_DIRECTORY