chiark
/
gitweb
/
~ian
/
moebius2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
62f97dc
)
fix up voe_max for new topology
author
Ian Jackson
<ian@davenant.relativity.greenend.org.uk>
Tue, 1 Jan 2008 20:25:52 +0000
(20:25 +0000)
committer
Ian Jackson
<ian@davenant.relativity.greenend.org.uk>
Tue, 1 Jan 2008 20:25:52 +0000
(20:25 +0000)
bgl.cpp
patch
|
blob
|
history
diff --git
a/bgl.cpp
b/bgl.cpp
index 30a1767b175dae8c9f863501675b58798d9d0da7..325617eca59b114fff476833f347eeb3cc718e90 100644
(file)
--- 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_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; }
};
static int voe_degree(int _v) { return RIM_VERTEX_P(_v) ? 4 : V6; }
};