From 9c18ef6e1208a7e03dc828fd5b25fde2275cbb77 Mon Sep 17 00:00:00 2001
From: Samuel Thibault <samuel.thibault@inria.fr>
Date: Thu, 11 Feb 2010 10:44:23 +0000
Subject: [PATCH] fix size type comparison

---
 src/core/Core.cpp   | 2 +-
 src/parser/Line.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/Core.cpp b/src/core/Core.cpp
index f0c3ac08..521444da 100644
--- a/src/core/Core.cpp
+++ b/src/core/Core.cpp
@@ -228,7 +228,7 @@ bool Core::draw_trace(const string & filename, const int format){
 
 
     // Get the parser in function of the extension of the file
-    const unsigned int position_of_dot = filename.find_last_of('.');
+    const string::size_type position_of_dot = filename.find_last_of('.');
     if (position_of_dot != string::npos) {
         if(filename.substr(position_of_dot) == ".trace") {
             parser = new ParserPaje();
diff --git a/src/parser/Line.cpp b/src/parser/Line.cpp
index 12da16fc..20dea85c 100644
--- a/src/parser/Line.cpp
+++ b/src/parser/Line.cpp
@@ -171,7 +171,7 @@ unsigned int Line::get_line_count() const {
 int Line::build_composite_token(const string &line, int index) {
     // line[index] corresponds to the delimiter ie " or '
     // We search the first one after this one
-    const unsigned int delimiter = line.find_first_of(line[index], index+1);
+    const string::size_type delimiter = line.find_first_of(line[index], index+1);
 
     if(delimiter == string::npos) {
         throw "overflow in buffer";
-- 
GitLab