From 96c6fd74b41dd886166693071240b17e1f5f11dd Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 17 May 2018 15:42:12 +0200 Subject: [PATCH] mingw needs explicit conversion of enum member to int in conditional --- src/utils/smallut.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/smallut.cpp b/src/utils/smallut.cpp index 465b263b..e9b8ac0f 100644 --- a/src/utils/smallut.cpp +++ b/src/utils/smallut.cpp @@ -1238,8 +1238,8 @@ public: Internal(const string& exp, int flags, int nm) : expr(exp, basic_regex::flag_type(regex_constants::extended | - ((flags&SRE_ICASE) ? regex_constants::icase : 0) | - ((flags&SRE_NOSUB) ? regex_constants::nosubs : 0) + ((flags&SRE_ICASE) ? int(regex_constants::icase) : 0) | + ((flags&SRE_NOSUB) ? int(regex_constants::nosubs) : 0) )), ok(true), nmatch(nm) { } std::regex expr;