Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadowed variable in lambda function resulted in warning #18

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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