fixed some msvc warnings

This commit is contained in:
Arvid Norberg
2010-10-16 15:24:45 +00:00
parent 7be0604877
commit 559c4bdf65
9 changed files with 32 additions and 29 deletions

View File

@@ -200,10 +200,10 @@ namespace libtorrent
e.size = size;
e.path = file;
e.offset = m_total_size;
e.pad_file = bool(flags & pad_file);
e.hidden_attribute = bool(flags & attribute_hidden);
e.executable_attribute = bool(flags & attribute_executable);
e.symlink_attribute = bool(flags & attribute_symlink);
e.pad_file = (flags & pad_file) != 0;
e.hidden_attribute = (flags & attribute_hidden) != 0;
e.executable_attribute = (flags & attribute_executable) != 0;
e.symlink_attribute = (flags & attribute_symlink) != 0;
if (e.symlink_attribute) e.symlink_path = symlink_path;
e.mtime = mtime;
m_total_size += size;