From: ellson Date: Tue, 19 Jul 2005 13:41:54 +0000 (+0000) Subject: Fix: c-1241 cc: ERROR File = compute_hierarchy.c, Line = 120 X-Git-Tag: LAST_LIBGRAPH~32^2~7410 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76f3459086d2808785818edad35aad5f68b2eb98;p=graphviz Fix: c-1241 cc: ERROR File = compute_hierarchy.c, Line = 120 A declaration cannot appear after an executable statement in a block. --- diff --git a/lib/neatogen/compute_hierarchy.c b/lib/neatogen/compute_hierarchy.c index 683b3b286..56ac70add 100644 --- a/lib/neatogen/compute_hierarchy.c +++ b/lib/neatogen/compute_hierarchy.c @@ -116,8 +116,8 @@ compute_hierarchy(vtx_data* graph, int n, double abs_tol, double relative_tol, levels[0] = n; } else { - *levelsp = levels = N_GNEW(num_levels, int); int count=0; + *levelsp = levels = N_GNEW(num_levels, int); for (i=1; i tol) { levels[count++] = i;