Skip to content

Commit

Permalink
Include cast for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbeattie42 committed Dec 6, 2024
1 parent 631bd63 commit 4e83ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenSim/Common/CommonUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ std::vector<T> createVectorLinspaceInterval(
std::vector<T> output(ivec.size());
std::transform(ivec.begin(), ivec.end(), output.begin(),
[step_size, start](int value) {
return std::fma(value, step_size, start);
return std::fma(static_cast<T>(value), step_size, start);
});
return output;
};
Expand Down

0 comments on commit 4e83ff5

Please sign in to comment.