Skip to content

Commit

Permalink
Shadowed variable in lambda function resulted in warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jzwar committed Dec 13, 2023
1 parent d9fdf10 commit 03dde7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bezier_spline.inc
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ BezierSpline<parametric_dimension, PhysicalPointType, ScalarType>::

// Determine how many control points are expected in the current spline
auto compute_number_of_control_points = [&new_degrees]() -> IndexingType {
IndexingType number_of_control_points = 1u;
IndexingType number_of_control_points_ = 1u;
for (unsigned int i{}; i < parametric_dimension; i++) {
number_of_control_points *= new_degrees[i] + 1;
number_of_control_points_ *= new_degrees[i] + 1;
}
return number_of_control_points;
return number_of_control_points_;
};

// Determine control point IDs using current values of new_degrees
Expand Down

0 comments on commit 03dde7e

Please sign in to comment.