Skip to content

Commit

Permalink
[sketch] Geo.cpp: fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
donovaly committed Nov 19, 2022
1 parent 0c2fdd6 commit e6c53d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/App/planegcs/Geo.cpp
Expand Up @@ -729,7 +729,7 @@ double BSpline::getLinCombFactor(double x, size_t k, size_t i)

std::vector d(degree + 1, 0.0);
// Ensure this is within range
int idxOfPole = i + degree - k;
int idxOfPole = static_cast<int>(i) + degree - static_cast<int>(k);
if (idxOfPole < 0 || idxOfPole > degree)
return 0.0;
d[idxOfPole] = 1.0;
Expand Down

0 comments on commit e6c53d8

Please sign in to comment.