diff --git a/samplebuffer.cpp b/samplebuffer.cpp index 3c81d53..6135c8e 100644 --- a/samplebuffer.cpp +++ b/samplebuffer.cpp @@ -37,7 +37,7 @@ template std::unique_ptr SampleBuffer::getSamples(off_t start, off_t length) { // TODO: base this on the actual history required - auto history = std::min(start, 256L); + auto history = std::min(start, (off_t)256); auto samples = src->getSamples(start - history, length + history); if (samples == nullptr) return nullptr;