diff --git a/source/module_io/input_conv.h b/source/module_io/input_conv.h index da51ffc0d7..bbb51df101 100644 --- a/source/module_io/input_conv.h +++ b/source/module_io/input_conv.h @@ -101,7 +101,7 @@ void parse_expression(const std::string& fn, std::vector& vec) if (regexec(&sub_reg, sub_str.c_str(), sub_nmatch, sub_pmatch, 0) == 0) { - int pos = sub_str.find("*"); + size_t pos = sub_str.find("*"); int num = stoi(sub_str.substr(0, pos)); assert(num >= 0); T occ = stof(sub_str.substr(pos + 1, sub_str.size()));