Skip to content

Commit c1235ac

Browse files
authored
Update input_conv.h
1 parent eb353a8 commit c1235ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_io/input_conv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void parse_expression(const std::string& fn, std::vector<T>& vec)
101101

102102
if (regexec(&sub_reg, sub_str.c_str(), sub_nmatch, sub_pmatch, 0) == 0)
103103
{
104-
int pos = sub_str.find("*");
104+
size_t pos = sub_str.find("*");
105105
int num = stoi(sub_str.substr(0, pos));
106106
assert(num >= 0);
107107
T occ = stof(sub_str.substr(pos + 1, sub_str.size()));

0 commit comments

Comments
 (0)