From 793b21ccd7e85a1487d5e3dc7b72655e83d96749 Mon Sep 17 00:00:00 2001 From: adalisan Date: Sun, 27 Aug 2017 12:49:42 -0400 Subject: [PATCH] fix solaris bug --- src/graphm/graph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphm/graph.cpp b/src/graphm/graph.cpp index f760ead..238b2e1 100644 --- a/src/graphm/graph.cpp +++ b/src/graphm/graph.cpp @@ -69,13 +69,13 @@ int graph::load_graph(std::string fgraph_name, char ftype, char cformat, std::st case 'A': case 'a': //matrix size - N = 0; + float N_read = 0; char buf[1]; while (fgraph >> de) //.getline(buf,1)) { - N++; + N_read+=1; }; - N = sqrt(N); + N = sqrt(N_read); int ierror = 1; if (N > 0) {