mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Fix integer conversion warning in MSVC.
- Raised by cnovel as issue #346: https://github.com/ceres-solver/ceres-solver/issues/346. Change-Id: I90815ab6412834dd793ca7c327002d551da0675b
This commit is contained in:
@@ -105,7 +105,8 @@ class DynamicAutoDiffCostFunction : public DynamicCostFunction {
|
||||
// To work around this issue, the solution here is to evaluate the
|
||||
// jacobians in a series of passes, each one computing Stripe *
|
||||
// num_residuals() derivatives. This is done with small, fixed-size jets.
|
||||
const int num_parameter_blocks = parameter_block_sizes().size();
|
||||
const int num_parameter_blocks =
|
||||
static_cast<int>(parameter_block_sizes().size());
|
||||
const int num_parameters = std::accumulate(parameter_block_sizes().begin(),
|
||||
parameter_block_sizes().end(),
|
||||
0);
|
||||
|
||||
Reference in New Issue
Block a user