From a09bf3469d65bb046ab58eef177a31efec7d0fb3 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 27 Oct 2014 14:24:11 -0700 Subject: [PATCH] Fix line clipping overflow bug --- geometry.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.cc b/geometry.cc index a06878f9..31eef53f 100644 --- a/geometry.cc +++ b/geometry.cc @@ -395,8 +395,8 @@ drawvec clip_lines(drawvec &geom, int z, int detail, long long buffer) { double x2 = geom[i - 0].x; double y2 = geom[i - 0].y; - unsigned min = 0; - unsigned area = 0xFFFFFFFF; + long long min = 0; + long long area = 0xFFFFFFFF; if (z != 0) { area = 1 << (32 - z);