[Stable 12] Removed cast to integer in getSize

Fixes - Wrong or no sizes of files/folders #5031 for 32-bit systems a direct cast to integer causes problems.
Backport from #5744

Signed-off-by: Sebastian Kostka <sebastian.kostka@gmail.com>
This commit is contained in:
Sebastian Kostka 2017-07-29 07:40:13 +02:00 committed by GitHub
parent 820a74e71b
commit 09b120c6da
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
*/
public function getSize() {
$this->updateEntryfromSubMounts();
return isset($this->data['size']) ? (int) $this->data['size'] : 0;
return isset($this->data['size']) ? 0 + $this->data['size'] : 0;
}
/**