download: cast fread len to int
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/653/head
parent
be537cd8e2
commit
7b8053652d
|
@ -197,7 +197,7 @@ class DownloadController extends GenericApiController
|
||||||
|
|
||||||
while (!feof($res) && $seekStart <= $seekEnd) {
|
while (!feof($res) && $seekStart <= $seekEnd) {
|
||||||
$lenLeft = $seekEnd - $seekStart + 1;
|
$lenLeft = $seekEnd - $seekStart + 1;
|
||||||
$buffer = fread($res, min(1024 * 1024, $lenLeft));
|
$buffer = fread($res, (int) min(1024 * 1024, $lenLeft));
|
||||||
if (false === $buffer) {
|
if (false === $buffer) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue