Fix line clipping overflow bug

This commit is contained in:
Eric Fischer 2014-10-27 14:24:11 -07:00
parent 3cd6fcfbe0
commit a09bf3469d

View File

@ -395,8 +395,8 @@ drawvec clip_lines(drawvec &geom, int z, int detail, long long buffer) {
double x2 = geom[i - 0].x; double x2 = geom[i - 0].x;
double y2 = geom[i - 0].y; double y2 = geom[i - 0].y;
unsigned min = 0; long long min = 0;
unsigned area = 0xFFFFFFFF; long long area = 0xFFFFFFFF;
if (z != 0) { if (z != 0) {
area = 1 << (32 - z); area = 1 << (32 - z);