mirror of https://github.com/odrling/Aegisub
Shut up warning
This commit is contained in:
parent
2adcc76cf6
commit
50e27d8247
|
@ -283,7 +283,7 @@ void SubsTextEditCtrl::SetTextTo(std::string const& text) {
|
|||
Freeze();
|
||||
|
||||
auto insertion_point = GetInsertionPoint();
|
||||
if (insertion_point > line_text.size())
|
||||
if (static_cast<size_t>(insertion_point) > line_text.size())
|
||||
line_text = GetTextRaw().data();
|
||||
auto old_pos = agi::CharacterCount(line_text.begin(), line_text.begin() + insertion_point, 0);
|
||||
line_text.clear();
|
||||
|
|
Loading…
Reference in New Issue