lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 8c11196 1/9: Work around a compiler warning


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 8c11196 1/9: Work around a compiler warning
Date: Thu, 12 Jul 2018 13:12:57 -0400 (EDT)

branch: master
commit 8c11196dfde86d628facdc4caf4d4c49915a57a1
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Work around a compiler warning
    
    See:
      https://lists.nongnu.org/archive/html/lmi/2018-07/msg00003.html
---
 group_quote_pdf_gen_wx.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/group_quote_pdf_gen_wx.cpp b/group_quote_pdf_gen_wx.cpp
index a2413a1..e2e4fce 100644
--- a/group_quote_pdf_gen_wx.cpp
+++ b/group_quote_pdf_gen_wx.cpp
@@ -528,7 +528,8 @@ void group_quote_pdf_generator_wx::add_ledger(Ledger const& 
ledger)
         }
     else
         {
-        if(invar.GroupIndivSelection != individual_selection_)
+        // static_cast to avoid an msvc warning:
+        if(static_cast<bool>(invar.GroupIndivSelection) != 
individual_selection_)
             {
             alarum()
                 << "Group quotes cannot mix mandatory and voluntary on the 
same plan."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]