From fe0832746b8b084f36706e296896a3a7e56e98cb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 26 Feb 2012 03:31:04 +0100 Subject: intval() of a number seems unnecessary and it could cause 32bit integer overflow issues --- lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/helper.php') 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; } -- cgit v1.2.3