From 4a1ef2e9fce14d796b3fb10884e177d39d493745 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 1 Jan 2008 20:25:52 +0000 Subject: [PATCH] fix up voe_max for new topology --- bgl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }; -- 2.30.2