diff --git a/src/StretcherProcess.cpp b/src/StretcherProcess.cpp index 70d540f..326d73a 100644 --- a/src/StretcherProcess.cpp +++ b/src/StretcherProcess.cpp @@ -690,7 +690,7 @@ RubberBandStretcher::Impl::modifyChunk(size_t channel, if (limit2 < limit1) limit2 = limit1; double prevInstability = 0.0; - double prevDirection = 0.0; + bool prevDirection = false; double distance = 0.0; const double maxdist = 8.0; diff --git a/src/main.cpp b/src/main.cpp index 4face44..d814840 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,7 +41,7 @@ using RubberBand::usleep; double tempo_convert(const char *str) { - char *d = strchr(str, ':'); + char *d = strchr((char *)str, ':'); if (!d || !*d) { double m = atof(str);