Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9c18ef6e authored by THIBAULT Samuel's avatar THIBAULT Samuel
Browse files

fix size type comparison

parent 32ea941c
Branches
Tags
No related merge requests found
......@@ -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();
......
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment