From 1aea522ef59c43ee93f15f88efc3fd221f869029 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Fri, 7 Nov 2014 12:51:26 -0800 Subject: [PATCH] Fix another overflow that broke line clipping at zoom level 1. --- geometry.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry.cc b/geometry.cc index 5425d947..daecdceb 100644 --- a/geometry.cc +++ b/geometry.cc @@ -398,7 +398,7 @@ drawvec clip_lines(drawvec &geom, int z, int detail, long long buffer) { long long min = 0; long long area = 0xFFFFFFFF; if (z != 0) { - area = 1 << (32 - z); + area = 1LL << (32 - z); min -= buffer * area / 256; area += buffer * area / 256;