Skip to content

Commit

Permalink
Support for 32-bit Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
ekarayel committed Jul 16, 2016
1 parent 6eb0221 commit aa0047e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Sync/MerkleTree/Analyse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ analyseEntry fp ignore path name
[ FileEntry $ File
{ f_name = path'
, f_size = FileSize filesize
, f_modtime = FileModTime modtime
, f_modtime = FileModTime $ fromIntegral modtime
} ]
| isDirectory status =
liftM ((DirectoryEntry path'):) $ analyseSubDirectory fp' ignore path'
Expand Down
2 changes: 1 addition & 1 deletion src/Sync/MerkleTree/Client.hs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ synchronizeNewOrChangedEntry pg fp entry =
loop firstResult
liftIO $ hClose h
liftIO $ modifyIORef (pg_count pg) (subtract 1)
let modTime = (CTime $ unModTime $ f_modtime f)
let modTime = (CTime $ fromIntegral $ unModTime $ f_modtime f)
liftIO $ setFileTimes (toFilePath fp $ f_name f) modTime modTime
DirectoryEntry p ->
do liftIO $ modifyIORef (pg_count pg) (subtract 1)
Expand Down

0 comments on commit aa0047e

Please sign in to comment.