use c++11 method for string to int
parent
8fefbbf06a
commit
37f6de744d
|
|
@ -260,7 +260,7 @@ DecisionTreeFactor TableFactor::toDecisionTreeFactor() const {
|
||||||
ss << keyValueForIndex(key, i);
|
ss << keyValueForIndex(key, i);
|
||||||
}
|
}
|
||||||
// k will be in reverse key order already
|
// k will be in reverse key order already
|
||||||
uint64_t k = std::strtoull(ss.str().c_str(), NULL, 10);
|
uint64_t k = std::stoll(ss.str().c_str());
|
||||||
pair_table.push_back(std::make_pair(k, sparse_table_.coeff(i)));
|
pair_table.push_back(std::make_pair(k, sparse_table_.coeff(i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue