Fix MSVC build error C2397 (narrowing conversion)
signalsmith-stretch.h(407,29): error C2397: conversion from 'int' to 'size_t' requires a narrowing conversion MSBuild version 17.13.15+18b3035f6 for .NET Framework
This commit is contained in:
parent
8621f1479f
commit
c78aacf638
@ -8,6 +8,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <random>
|
#include <random>
|
||||||
|
#include <limits>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
namespace signalsmith { namespace stretch {
|
namespace signalsmith { namespace stretch {
|
||||||
@ -404,7 +405,7 @@ struct SignalsmithStretch {
|
|||||||
private:
|
private:
|
||||||
bool _splitComputation = false;
|
bool _splitComputation = false;
|
||||||
struct {
|
struct {
|
||||||
size_t samplesSinceLast = -1;
|
size_t samplesSinceLast = std::numeric_limits<size_t>::max();
|
||||||
size_t steps = 0;
|
size_t steps = 0;
|
||||||
size_t step = 0;
|
size_t step = 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user