avoid level 2 warning about variable size mismatch for x64

This commit is contained in:
Christian Grasser 2015-06-08 13:07:45 +02:00
parent edfa987f4e
commit a371ddf822
1 changed files with 3 additions and 3 deletions

View File

@ -598,14 +598,14 @@ void FunctionParser::getInvertZones(vector< pair<int, int> > & destZones, vecto
{ {
if (sourceZones.size() == 0) if (sourceZones.size() == 0)
{ {
destZones.push_back(pair<int, int>(begin, end)); destZones.push_back(pair<int, int>((int)begin, (int)end));
} }
else else
{ {
// check the begin // check the begin
if (int(begin) < sourceZones[0].first) if (int(begin) < sourceZones[0].first)
{ {
destZones.push_back(pair<int, int>(begin, sourceZones[0].first - 1)); destZones.push_back(pair<int, int>((int)begin, sourceZones[0].first - 1));
} }
size_t i = 0; size_t i = 0;
@ -618,7 +618,7 @@ void FunctionParser::getInvertZones(vector< pair<int, int> > & destZones, vecto
} }
int lastBegin = sourceZones[i].second + 1; int lastBegin = sourceZones[i].second + 1;
if (lastBegin < int(end)) if (lastBegin < int(end))
destZones.push_back(pair<int, int>(lastBegin, end)); destZones.push_back(pair<int, int>(lastBegin, (int)end));
} }
} }