From d0a2e478876220c08cebea2548afb91a4b75b0fc Mon Sep 17 00:00:00 2001 From: greenfish Date: Sat, 26 Mar 2022 00:41:34 +0900 Subject: [PATCH] fix version check. --- include/gaenari/supul/common/util.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/gaenari/supul/common/util.hpp b/include/gaenari/supul/common/util.hpp index 5a807b6..28bd56d 100644 --- a/include/gaenari/supul/common/util.hpp +++ b/include/gaenari/supul/common/util.hpp @@ -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.