From f0dc92dc2dd7c666bd84c23f20c3774c10b46a7b Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 27 Mar 2020 14:08:44 -0700 Subject: [PATCH] Use uint in bit shift, closes #27 --- tile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.go b/tile.go index 5252bb0..38a6069 100644 --- a/tile.go +++ b/tile.go @@ -36,7 +36,7 @@ func makeTile(vars map[string]string) (Tile, error) { } func (tile *Tile) Width() float64 { - worldTileSize := int(1) << tile.Zoom + worldTileSize := int(1) << uint(tile.Zoom) return worldMercWidth / float64(worldTileSize) }