Make explicit the conversion from 64 bits to 32 bits. In the case of files, perhaps we should be using an appropriate type such as off_t rather than int. I am not sure if anyone would actually want to use files larger than 2 GB with SM, but it seems possible while using .smzip.

This commit is contained in:
Steve Checkoway
2008-11-24 07:52:55 +00:00
parent 3a38e28fac
commit 0efbd42aa3
2 changed files with 4 additions and 4 deletions
@@ -278,7 +278,7 @@ void DirectFilenameDB::PopulateFileSet( FileSet &fs, const RString &path )
else
{
f.dir = (st.st_mode & S_IFDIR);
f.size = st.st_size;
f.size = (int)st.st_size;
f.hash = st.st_mtime;
}