1
0
mirror of https://github.com/odrling/Aegisub synced 2025-04-11 22:56:02 +02:00

Shut up warning

This commit is contained in:
Thomas Goyne 2014-04-25 20:42:42 -07:00
parent 2adcc76cf6
commit 50e27d8247

View File

@ -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();