use c++11 method for string to int

release/4.3a0
Varun Agrawal 2024-12-16 10:28:55 -05:00
parent 8fefbbf06a
commit 37f6de744d
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ DecisionTreeFactor TableFactor::toDecisionTreeFactor() const {
ss << keyValueForIndex(key, i);
}
// 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)));
}