diff options
author | OctaneSnail <os@v12pwr.com> | 2010-06-25 23:50:28 +0400 |
---|---|---|
committer | OctaneSnail <os@v12pwr.com> | 2010-06-26 00:37:19 +0400 |
commit | 96f938ca53851d488297e6265e94a4496e403b49 (patch) | |
tree | 8c405add4a0b0784df30e3ffba729cb8a7c064e4 | |
parent | 0f64bff8ffd3edcd62d7c71c48cd0a91af143e1d (diff) |
Silence bool optimization warnings.
-rw-r--r-- | RFS.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -321,8 +321,8 @@ int CRARFileSource::ScanArchive (wchar_t *archive_name, List<File> *file_list, i { first_archive_file = false; - new_numbering = rh.ch.flags & MHD_NEWNUMBERING; - multi_volume = rh.ch.flags & MHD_VOLUME; + new_numbering = !!(rh.ch.flags & MHD_NEWNUMBERING); + multi_volume = !!(rh.ch.flags & MHD_VOLUME); if (multi_volume) { @@ -377,7 +377,7 @@ int CRARFileSource::ScanArchive (wchar_t *archive_name, List<File> *file_list, i } else { - ASSERT (new_numbering == (bool) (rh.ch.flags & MHD_NEWNUMBERING)); + ASSERT (new_numbering == !!(rh.ch.flags & MHD_NEWNUMBERING)); ASSERT (rh.ch.flags & MHD_VOLUME); } |