Skip to content

Commit

Permalink
use c++11 method for string to int
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Dec 16, 2024
1 parent 8fefbbf commit 37f6de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/discrete/TableFactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}

Expand Down

0 comments on commit 37f6de7

Please sign in to comment.