Skip to content

Commit

Permalink
Fix FILETIME calculation on Windows 32 Bit.
Browse files Browse the repository at this point in the history
t seems to be Int32 instead of Int64 here.
  • Loading branch information
Alex Biehl committed Dec 6, 2016
1 parent 0ad1f0c commit 4b4d227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System/PosixCompat/Files.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ setFileTimes file atime mtime =
epochTimeToFileTime (CTime t) = FILETIME (fromIntegral ll)
where
ll :: Int64
ll = t * 10000000 + 116444736000000000
ll = fromIntegral t * 10000000 + 116444736000000000

touchFile :: FilePath -> IO ()
touchFile name =
Expand Down

0 comments on commit 4b4d227

Please sign in to comment.