mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-15 01:44:41 +02:00
avoid level 2 warning about variable size mismatch for x64
This commit is contained in:
parent
edfa987f4e
commit
a371ddf822
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user