diff --git a/PowerEditor/src/WinControls/FunctionList/functionParser.cpp b/PowerEditor/src/WinControls/FunctionList/functionParser.cpp index a0b80242..a015edd6 100644 --- a/PowerEditor/src/WinControls/FunctionList/functionParser.cpp +++ b/PowerEditor/src/WinControls/FunctionList/functionParser.cpp @@ -598,14 +598,14 @@ void FunctionParser::getInvertZones(vector< pair > & destZones, vecto { if (sourceZones.size() == 0) { - destZones.push_back(pair(begin, end)); + destZones.push_back(pair((int)begin, (int)end)); } else { // check the begin if (int(begin) < sourceZones[0].first) { - destZones.push_back(pair(begin, sourceZones[0].first - 1)); + destZones.push_back(pair((int)begin, sourceZones[0].first - 1)); } size_t i = 0; @@ -618,7 +618,7 @@ void FunctionParser::getInvertZones(vector< pair > & destZones, vecto } int lastBegin = sourceZones[i].second + 1; if (lastBegin < int(end)) - destZones.push_back(pair(lastBegin, end)); + destZones.push_back(pair(lastBegin, (int)end)); } }