mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- fixed warnings.
This commit is contained in:
parent
32e0123e1b
commit
0c0cb6d69c
2 changed files with 7 additions and 7 deletions
|
@ -282,7 +282,7 @@ struct FCommandBuffer
|
|||
|
||||
void CursorEnd()
|
||||
{
|
||||
CursorPos = Text.Len();
|
||||
CursorPos = (unsigned)Text.Len();
|
||||
StartPos = 0;
|
||||
MakeStartPosGood();
|
||||
}
|
||||
|
@ -358,7 +358,7 @@ struct FCommandBuffer
|
|||
{
|
||||
Text.Insert(CursorPos, clip);
|
||||
}
|
||||
CursorPos += clip.Len();
|
||||
CursorPos += (unsigned)clip.Len();
|
||||
MakeStartPosGood();
|
||||
}
|
||||
}
|
||||
|
@ -366,7 +366,7 @@ struct FCommandBuffer
|
|||
void SetString(FString str)
|
||||
{
|
||||
Text = str;
|
||||
CursorPos = Text.Len();
|
||||
CursorPos = (unsigned)Text.Len();
|
||||
MakeStartPosGood();
|
||||
}
|
||||
};
|
||||
|
@ -1862,7 +1862,7 @@ static void C_TabComplete (bool goForward)
|
|||
}
|
||||
TabStart = i;
|
||||
|
||||
TabSize = CmdLine.Text.Len() - TabStart;
|
||||
TabSize = (int)CmdLine.Text.Len() - TabStart;
|
||||
|
||||
if (!FindTabCommand(&CmdLine.Text[TabStart], &TabPos, TabSize))
|
||||
return; // No initial matches
|
||||
|
@ -1922,7 +1922,7 @@ static void C_TabComplete (bool goForward)
|
|||
CmdLine.Text << TabCommands[TabPos].TabName << ' ';
|
||||
}
|
||||
}
|
||||
CmdLine.CursorPos = CmdLine.Text.Len();
|
||||
CmdLine.CursorPos = (unsigned)CmdLine.Text.Len();
|
||||
CmdLine.MakeStartPosGood();
|
||||
}
|
||||
|
||||
|
@ -1996,7 +1996,7 @@ static bool C_TabCompleteList ()
|
|||
TabSize = commonsize;
|
||||
CmdLine.Text.Truncate(TabStart);
|
||||
CmdLine.Text.AppendCStrPart(TabCommands[TabPos].TabName.GetChars(), commonsize);
|
||||
CmdLine.CursorPos = CmdLine.Text.Len();
|
||||
CmdLine.CursorPos = (unsigned)CmdLine.Text.Len();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -397,7 +397,7 @@ void FString::Remove(size_t index, size_t remlen)
|
|||
if (Data()->RefCount == 1)
|
||||
{ // Can do this in place
|
||||
memmove(Chars + index, Chars + index + remlen, Len() - index - remlen);
|
||||
Data()->Len -= remlen;
|
||||
Data()->Len -= (unsigned)remlen;
|
||||
}
|
||||
else
|
||||
{ // Must do it in a copy
|
||||
|
|
Loading…
Reference in a new issue