From a371ddf8229bf176e879caecee231c18d5319340 Mon Sep 17 00:00:00 2001 From: Christian Grasser Date: Mon, 8 Jun 2015 13:07:45 +0200 Subject: [PATCH] avoid level 2 warning about variable size mismatch for x64 --- PowerEditor/src/WinControls/FunctionList/functionParser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); } }