From d5865635dfddd3b33fa1cb9dacbb2195bb04e53c Mon Sep 17 00:00:00 2001
From: valerio <valerio@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Thu, 15 Jul 2010 09:13:47 +0000
Subject: [PATCH] Fixes to remove some warnings

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2565 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 modules/gui/src/python_shell/shell_history.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/src/python_shell/shell_history.cc b/modules/gui/src/python_shell/shell_history.cc
index 14ce28eaf..01d7e16c3 100644
--- a/modules/gui/src/python_shell/shell_history.cc
+++ b/modules/gui/src/python_shell/shell_history.cc
@@ -91,14 +91,14 @@ void ShellHistory::MoveToPreviousMatch()
 void ShellHistory::MoveToNextMatch()
 {
   int newindex=index_+1;
-  while(newindex<history_list_.size()){
+  while(static_cast<unsigned int>(newindex)<history_list_.size()){
     if(history_list_[newindex].first.indexOf(current_)==0 || current_.size()==0){
       index_=newindex;
       break;
     }
     ++newindex;
   }
-  if(newindex!=index_){
+  if(static_cast<unsigned int>(newindex)!=index_){
     index_=history_list_.size();
   }
 }
-- 
GitLab