summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-26 03:31:04 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-26 03:31:04 +0100
commitfe0832746b8b084f36706e296896a3a7e56e98cb (patch)
tree7016179c06ccb23a41b8a5f6f3578edb374c9de9 /lib/helper.php
parentff9111847f6646a35a7197c0c956559972a7bccb (diff)
downloadnextcloud-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.php2
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;
}