From: Ian Jackson Date: Tue, 1 Jan 2008 20:25:52 +0000 (+0000) Subject: fix up voe_max for new topology X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=moebius2.git;a=commitdiff_plain;h=4a1ef2e9fce14d796b3fb10884e177d39d493745 fix up voe_max for new topology --- diff --git a/bgl.cpp b/bgl.cpp index 30a1767..325617e 100644 --- a/bgl.cpp +++ b/bgl.cpp @@ -98,7 +98,7 @@ class OutEdgeIterator : } static int voe_min(int _v) { return (_v & YMASK) ? 2 : 3; } - static int voe_max(int _v) { return (~_v & YMASK) ? V6 : 4; } + static int voe_max(int _v) { return (_v & YMASK)==(Y-1) ? V6 : 4; } static int voe_degree(int _v) { return RIM_VERTEX_P(_v) ? 4 : V6; } };