diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-26 03:31:04 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-26 03:31:04 +0100 |
commit | fe0832746b8b084f36706e296896a3a7e56e98cb (patch) | |
tree | 7016179c06ccb23a41b8a5f6f3578edb374c9de9 /lib/helper.php | |
parent | ff9111847f6646a35a7197c0c956559972a7bccb (diff) | |
download | nextcloud-server-fe0832746b8b084f36706e296896a3a7e56e98cb.tar.gz nextcloud-server-fe0832746b8b084f36706e296896a3a7e56e98cb.zip |
intval() of a number seems unnecessary
and it could cause 32bit integer overflow issues
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index 2f71bdad2dc..80074a21b97 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -194,7 +194,7 @@ class OC_Helper { $bytes *= $bytes_array[$matches[1]]; } - $bytes = intval(round($bytes, 2)); + $bytes = round($bytes, 2); return $bytes; } |