Skip to content

Commit

Permalink
Update input_conv.h
Browse files Browse the repository at this point in the history
  • Loading branch information
1041176461 authored Jan 30, 2025
1 parent eb353a8 commit c1235ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/module_io/input_conv.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void parse_expression(const std::string& fn, std::vector<T>& 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()));
Expand Down

0 comments on commit c1235ac

Please sign in to comment.