From b8ed09695fbde1b713fe1bfa98853437adecfd9a Mon Sep 17 00:00:00 2001
From: Stephen Anthony <sa666666@gmail.com>
Date: Mon, 10 May 2021 15:04:01 -0230
Subject: [PATCH] Fix minor warnings from g++11.

---
 src/debugger/gui/PromptWidget.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/debugger/gui/PromptWidget.cxx b/src/debugger/gui/PromptWidget.cxx
index 01686f5fe..5891aa276 100644
--- a/src/debugger/gui/PromptWidget.cxx
+++ b/src/debugger/gui/PromptWidget.cxx
@@ -559,7 +559,7 @@ int PromptWidget::historyDir(int& index, int direction, bool promptSpace)
 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 void PromptWidget::historyAdd(const string& entry)
 {
-  if(_historyIndex >= _history.size())
+  if(_historyIndex >= int(_history.size()))
     _history.push_back(entry);
   else
     _history[_historyIndex] = entry;
@@ -766,7 +766,7 @@ bool PromptWidget::autoComplete(int direction)
       _tabCount = int(list.size()) - 1;
   }
   else
-    _tabCount = (++_tabCount) % list.size();
+    _tabCount = (_tabCount + 1) % list.size();
 
   nextLine();
   _currentPos = _promptStartPos;