chiark / gitweb /
fix up bgl.cpp for topology
[moebius2.git] / bgl.cpp
diff --git a/bgl.cpp b/bgl.cpp
index cbe45b52d798865b2ad1ce0b7ad09218cd689ed7..193a75a97fac5eac1b901aa2afcb7ff511a572cf 100644 (file)
--- a/bgl.cpp
+++ b/bgl.cpp
@@ -190,7 +190,7 @@ double graph_layout_cost(const Vertices v, const double vertex_areas[N]) {
    */
   static const double d2_epsilon= 1e-6;
   
-  double edge_weights[N*V6], vertex_distances[N], total_cost=0;
+  double edge_weights[V6<<ESHIFT], vertex_distances[N], total_cost=0;
   int v1,v2,e,f;
 
   FOR_VERTEX(v1)