mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-31 01:34:58 +02:00
Fix build error
This commit is contained in:
parent
f20aa321db
commit
7a296a818d
@ -3609,7 +3609,7 @@ size_t Notepad_plus::getSelectedCharNumber(UniMode u)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (int i=0; i < numSel; ++i)
|
for (size_t i = 0; i < numSel; ++i)
|
||||||
{
|
{
|
||||||
size_t stpos = _pEditView->execute(SCI_GETSELECTIONNSTART, i);
|
size_t stpos = _pEditView->execute(SCI_GETSELECTIONNSTART, i);
|
||||||
size_t endpos = _pEditView->execute(SCI_GETSELECTIONNEND, i);
|
size_t endpos = _pEditView->execute(SCI_GETSELECTIONNEND, i);
|
||||||
|
@ -2286,7 +2286,7 @@ char * ScintillaEditView::getSelectedText(char * txt, size_t size, bool expand)
|
|||||||
expandWordSelection();
|
expandWordSelection();
|
||||||
range = getSelection();
|
range = getSelection();
|
||||||
}
|
}
|
||||||
if (!(size > (range.cpMax - range.cpMin))) //there must be atleast 1 byte left for zero terminator
|
if (!(static_cast<Sci_PositionCR>(size) > (range.cpMax - range.cpMin))) //there must be atleast 1 byte left for zero terminator
|
||||||
{
|
{
|
||||||
range.cpMax = range.cpMin + (Sci_PositionCR)size -1; //keep room for zero terminator
|
range.cpMax = range.cpMin + (Sci_PositionCR)size -1; //keep room for zero terminator
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user