Skip to content

Commit

Permalink
Use uint in bit shift, closes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Mar 27, 2020
1 parent 55e2948 commit f0dc92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit f0dc92d

Please sign in to comment.