From a045a62651f63f3c03a04defcf12e63da6c16727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Girault?= Date: Thu, 20 Feb 2014 16:45:08 +0100 Subject: [PATCH] Use shorter syntax for integer division by 2 --- src/ol/source/zoomifysource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/source/zoomifysource.js b/src/ol/source/zoomifysource.js index f2cb3dfbfa..74aaaca90a 100644 --- a/src/ol/source/zoomifysource.js +++ b/src/ol/source/zoomifysource.js @@ -44,8 +44,8 @@ ol.source.Zoomify = function(opt_options) { Math.ceil(width / tileSize), Math.ceil(height / tileSize) ]); - width = parseInt(width / 2, 10); - height = parseInt(height / 2, 10); + width >>= 1; + height >>= 1; } } else { while (imageWidth > tileSize || imageHeight > tileSize) {