]> granicus.if.org Git - graphviz/commitdiff
mark dimension as a constant in ANN bridge
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 14 Feb 2021 05:36:37 +0000 (21:36 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Feb 2021 16:03:52 +0000 (08:03 -0800)
Related to #1938.

lib/mingle/nearest_neighbor_graph_ann.cpp

index c4f62190bf600688ad27f2d8c4f37f7263bd7b72..1abb182a66980d103e5cd7adb5e2e7ebafad1e07 100644 (file)
@@ -19,8 +19,7 @@
 #include <mingle/nearest_neighbor_graph_ann.h>
 #include <vector>
 
-int                             dim                             = 4;                    // dimension
-
+static const int dim = 4; // dimension
 
 /*
 static void printPt(ostream &out, ANNpoint p)                  // print point