diff --git a/modules/juce_core/network/juce_URL.cpp b/modules/juce_core/network/juce_URL.cpp index a72fe6578c..b518bf36c9 100644 --- a/modules/juce_core/network/juce_URL.cpp +++ b/modules/juce_core/network/juce_URL.cpp @@ -62,8 +62,8 @@ struct FallbackDownloadTask : public URL::DownloadTask, if (listener != nullptr) listener->progress (this, downloaded, contentLength); - auto max = jmin ((int) bufferSize, contentLength < 0 ? std::numeric_limits::max() - : static_cast (contentLength - downloaded)); + auto max = (int) jmin ((int64) bufferSize, contentLength < 0 ? std::numeric_limits::max() + : static_cast (contentLength - downloaded)); auto actual = stream->read (buffer.get(), max);