diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-18 16:56:36 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-18 16:56:36 +0200 |
commit | 560ccf5d8320c2502c8499b1704d1b348b3a3fbd (patch) | |
tree | 8240fb211edd509183a30217113fbd222aaecc94 /lib | |
parent | 92b67409fa3e9ac25da7439731b5df783f50b299 (diff) | |
download | nextcloud-server-560ccf5d8320c2502c8499b1704d1b348b3a3fbd.tar.gz nextcloud-server-560ccf5d8320c2502c8499b1704d1b348b3a3fbd.zip |
Cast float to int to avoid invalid scalar argument warning
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Stream/Encryption.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Stream/Encryption.php b/lib/private/Files/Stream/Encryption.php index 1fc14daacbd..980be6d043e 100644 --- a/lib/private/Files/Stream/Encryption.php +++ b/lib/private/Files/Stream/Encryption.php @@ -416,7 +416,7 @@ class Encryption extends Wrapper { return $return; } - $newFilePosition = floor($newPosition / $this->unencryptedBlockSize) + $newFilePosition = (int)floor($newPosition / $this->unencryptedBlockSize) * $this->util->getBlockSize() + $this->headerSize; $oldFilePosition = parent::stream_tell(); |