Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/rarfilesource.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOctaneSnail <os@v12pwr.com>2010-06-25 23:50:28 +0400
committerOctaneSnail <os@v12pwr.com>2010-06-26 00:37:19 +0400
commit96f938ca53851d488297e6265e94a4496e403b49 (patch)
tree8c405add4a0b0784df30e3ffba729cb8a7c064e4
parent0f64bff8ffd3edcd62d7c71c48cd0a91af143e1d (diff)
Silence bool optimization warnings.
-rw-r--r--RFS.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/RFS.cpp b/RFS.cpp
index 387dd97..4d70f28 100644
--- a/RFS.cpp
+++ b/RFS.cpp
@@ -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);
}