Skip to content

Commit 705052b

Browse files
committed
Fix regex flag check, 32/64 issue
1 parent 7f5c0b5 commit 705052b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SarAsio/config.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ bool ApplicationConfig::load(picojson::object& obj)
191191

192192
// TODO: UTF-8 support on Windows is very sad. This might need ICU or
193193
// PCRE.
194-
pattern = std::regex(regexMatch ? constantRegex(path) : path,
194+
pattern = std::regex(regexMatch ? path : constantRegex(path),
195195
std::regex_constants::ECMAScript | std::regex_constants::icase);
196196
} catch (std::exception&) {
197197
// nom nom

SarAsio/configui.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ void ApplicationConfigDialog::updateDefaultEndpoint(
774774
{
775775
auto index = ComboBox_GetCurSel(control);
776776

777-
if (index > 0 && index - 1 < _driverConfig.endpoints.size()) {
777+
if (index > 0 && index - 1 < (int)_driverConfig.endpoints.size()) {
778778
DefaultEndpointConfig defaultEndpoint;
779779

780780
defaultEndpoint.type = dataFlow;

0 commit comments

Comments
 (0)