MSVC: Fix compiler warnings
* avoid redefines in Assembly * explicit cast from size_t to int * remove unused variables * avoid implicit cast from double to float * in test cases replace EXPECT_FLOAT_EQ with EXPECT_DOUBLE_EQ or EXPECT_NEAR when doubles are used
This commit is contained in:
@@ -38,7 +38,7 @@ EndMill::EndMill(const std::vector<float>& toolProfile, int toolid, float diamet
|
||||
profilePoints = nullptr;
|
||||
mHandleAllocation = false;
|
||||
|
||||
int srcBuffSize = toolProfile.size();
|
||||
int srcBuffSize = static_cast<int>(toolProfile.size());
|
||||
nPoints = srcBuffSize / 2;
|
||||
if (nPoints < 2) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user