download: cast fread len to int

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/653/head
Varun Patil 2023-04-27 10:27:33 -07:00
parent be537cd8e2
commit 7b8053652d
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class DownloadController extends GenericApiController
while (!feof($res) && $seekStart <= $seekEnd) {
$lenLeft = $seekEnd - $seekStart + 1;
$buffer = fread($res, min(1024 * 1024, $lenLeft));
$buffer = fread($res, (int) min(1024 * 1024, $lenLeft));
if (false === $buffer) {
break;
}