chiark / gitweb /
fix up bgl.cpp for topology
authorIan Jackson <ian@davenant.relativity.greenend.org.uk>
Tue, 1 Jan 2008 20:45:34 +0000 (20:45 +0000)
committerIan Jackson <ian@davenant.relativity.greenend.org.uk>
Tue, 1 Jan 2008 20:45:34 +0000 (20:45 +0000)
bgl.cpp

diff --git a/bgl.cpp b/bgl.cpp
index cbe45b5..193a75a 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)