Skip to content

Commit

Permalink
fix version check.
Browse files Browse the repository at this point in the history
  • Loading branch information
greenfish77 committed Mar 25, 2022
1 parent 8e29ad7 commit d0a2e47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/gaenari/supul/common/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ inline bool is_version_update(_in const std::string& cur, _in const std::string&
gaenari::dataset::csv_reader::parse_delim(next,'.', next_items);

// set four items.
if (cur_items.size() == 3) cur_items.emplace_back("0");
if (cur_items.size() == 2) cur_items.emplace_back("0");
if (next_items.size() == 2) next_items.emplace_back("0");
if (cur_items.size() == 3) cur_items.emplace_back("0");
if (next_items.size() == 3) next_items.emplace_back("0");

// valid check.
Expand Down

0 comments on commit d0a2e47

Please sign in to comment.