diff --git a/source/lunch/update.d b/source/lunch/update.d index d4670a6..62e422f 100644 --- a/source/lunch/update.d +++ b/source/lunch/update.d @@ -25,14 +25,14 @@ private struct RemoteFile string source; string hash; ulong size; - size_t mtime; + long mtime; } private struct Remote { string source; ulong size; - size_t mtime; + long mtime; RemoteFile[] files; } @@ -40,7 +40,7 @@ private struct LocalFile { string file; ulong size; - size_t mtime; + long mtime; string hash() inout @property { @@ -64,7 +64,7 @@ private struct LocalFile private struct Local { ulong size; - size_t mtime; + long mtime; LocalFile[] files; } @@ -76,10 +76,10 @@ private struct Action download, } - What what; + What what; string file; string url; - size_t mtime; + long mtime; alias this = what; } @@ -228,7 +228,7 @@ private string workdir(string path) } -private void touch(string path, size_t mtime = Clock.currTime().toUnixTime) +private void touch(string path, long mtime = Clock.currTime().toUnixTime) { infof("Touching %s", path); SysTime old_atime, old_mtime; @@ -287,7 +287,7 @@ private immutable(Local) local() loc.files ~= LocalFile( file: entry.name.relativePath(workdir).replace('\\', '/'), - size: entry.size.to!uint, + size: entry.size.to!ulong, mtime: entry.timeLastModified.toUnixTime, );