fix second element parse error in dict

This commit is contained in:
npes87184 2016-07-22 10:19:28 +08:00
parent e3e5f93ca3
commit 0c3cf04b43

View File

@ -118,7 +118,7 @@ class DictTrie {
} else { } else {
MakeNodeInfo(node_info, MakeNodeInfo(node_info,
buf[0], buf[0],
(buf.size() == 2 ? atoi(buf[1].c_str()) : user_word_default_weight_), (buf.size() == 2 ? user_word_default_weight_ : atoi(buf[1].c_str())),
(buf.size() == 3 ? buf[2] : buf[1])); (buf.size() == 3 ? buf[2] : buf[1]));
} }
static_node_infos_.push_back(node_info); static_node_infos_.push_back(node_info);