Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Commit aca36f1

Browse files
committed
Minor tweaks for Win10 compilation
1 parent 0f49f65 commit aca36f1

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

src/cpp/Model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct NumSlice
7373
int_type fIntValue{};
7474
};
7575

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

7878
//------------------------------------------------------------------------
7979
// NumSlicesParamConverter: Number of slices is between 1 and NUM_SLICES

src/cpp/Plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ tresult SampleSplitterParameters::handleRTStateUpgrade(NormalizedState const &iD
426426
{
427427
// we handle number of slices (read it from old state / write to new)
428428
auto oldNumSlices = __deprecated_fNumSlices->readFromState(iDeprecatedState);
429-
fNumSlices->writeToState(NumSlice{oldNumSlices}, oNewState);
429+
fNumSlices->writeToState(NumSlice{static_cast<NumSlice::int_type>(oldNumSlices)}, oNewState);
430430

431431
// DLOG_F(INFO, "======>>>>> handleRTStateUpgrade:: upgraded from \n[%s]\n ==> \n[%s]",
432432
// iDeprecatedState.toString().c_str(),

src/cpp/RT/SampleSplitterProcessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ void SampleSplitterProcessor::handlePadSelection()
609609
auto padBank = *fState.fPadBank;
610610

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

614614
if(fState.fPadBank.hasChanged() || fState.fNumSlices.hasChanged())
615615
{

src/cpp/SampleSlice.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@ class SampleSlice
328328
case ETransition::kRestarting:
329329
return iStarting ? ETransition::kRestarting : ETransition::kStopping;
330330
}
331+
// not reached
332+
ABORT_F("not reached");
333+
return ETransition::kNone;
331334
}
332335

333336
private:

0 commit comments

Comments
 (0)