diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp index 5f3d01e25ff..6fc9cabf6a2 100644 --- a/graphics/macgui/mactextwindow.cpp +++ b/graphics/macgui/mactextwindow.cpp @@ -324,8 +324,8 @@ bool MacTextWindow::processEvent(Common::Event &event) { bool cutAllowed = false; - if (_selectedText.startRow >= _mactext->getLineCount() - _inputTextHeight && - _selectedText.endRow >= _mactext->getLineCount() - _inputTextHeight) + if (_selectedText.startRow >= (int)(_mactext->getLineCount() - _inputTextHeight) && + _selectedText.endRow >= (int)(_mactext->getLineCount() - _inputTextHeight)) cutAllowed = true; _menu->enableCommand("Edit", "Cut", cutAllowed);