1From 0820ef4b9238c1e39ae5bda32cc08cce3fd3ce89 Mon Sep 17 00:00:00 2001
2From: Nisha Parrakat <Nisha.Parrakat@kpit.com>
3Date: Wed, 26 May 2021 19:59:28 +0000
4Subject: [PATCH] fixes the below error
5
6| ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp: In member function 'virtual LONG NArchive::NWim::CHandler::GetArchiveProperty(PROPID, PROPVARIANT*)':
7| ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:308:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
8|   308 |           numMethods++;
9|       |           ^~~~~~~~~~
10| ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:318:9: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
11|   318 |         numMethods++;
12
13use unsigned instead of bool
14Signed-off-by: Nisha Parrakat <Nisha.Parrakat@kpit.com>
15
16Upstream-Status: Pending
17
18---
19 CPP/7zip/Archive/Wim/WimHandler.cpp | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/CPP/7zip/Archive/Wim/WimHandler.cpp b/CPP/7zip/Archive/Wim/WimHandler.cpp
23index 27d3298..4ff5cfe 100644
24--- a/CPP/7zip/Archive/Wim/WimHandler.cpp
25+++ b/CPP/7zip/Archive/Wim/WimHandler.cpp
26@@ -298,7 +298,7 @@ STDMETHODIMP CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value)
27
28       AString res;
29
30-      bool numMethods = 0;
31+      unsigned numMethods = 0;
32       for (unsigned i = 0; i < ARRAY_SIZE(k_Methods); i++)
33       {
34         if (methodMask & ((UInt32)1 << i))
35