Skip to content

Commit

Permalink
Minor tweaks for Win10 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed Mar 30, 2020
1 parent 0f49f65 commit aca36f1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cpp/Model.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct NumSlice
int_type fIntValue{};
};

constexpr auto DEFAULT_NUM_SLICES = NumSlice{16};
constexpr auto DEFAULT_NUM_SLICES = NumSlice{static_cast<NumSlice::int_type>(16)};

//------------------------------------------------------------------------
// NumSlicesParamConverter: Number of slices is between 1 and NUM_SLICES
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ tresult SampleSplitterParameters::handleRTStateUpgrade(NormalizedState const &iD
{
// we handle number of slices (read it from old state / write to new)
auto oldNumSlices = __deprecated_fNumSlices->readFromState(iDeprecatedState);
fNumSlices->writeToState(NumSlice{oldNumSlices}, oNewState);
fNumSlices->writeToState(NumSlice{static_cast<NumSlice::int_type>(oldNumSlices)}, oNewState);

// DLOG_F(INFO, "======>>>>> handleRTStateUpgrade:: upgraded from \n[%s]\n ==> \n[%s]",
// iDeprecatedState.toString().c_str(),
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/RT/SampleSplitterProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ void SampleSplitterProcessor::handlePadSelection()
auto padBank = *fState.fPadBank;

auto start = padBank * NUM_PADS;
auto end = std::min(start + NUM_PADS, numSlices);
auto end = std::min(start + NUM_PADS, static_cast<int>(numSlices));

if(fState.fPadBank.hasChanged() || fState.fNumSlices.hasChanged())
{
Expand Down
3 changes: 3 additions & 0 deletions src/cpp/SampleSlice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ class SampleSlice
case ETransition::kRestarting:
return iStarting ? ETransition::kRestarting : ETransition::kStopping;
}
// not reached
ABORT_F("not reached");
return ETransition::kNone;
}

private:
Expand Down

0 comments on commit aca36f1

Please sign in to comment.