From 0eb6bf618a66c0b608ac1e3223f7965af676b524 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Tue, 8 Mar 2016 22:15:09 +0100 Subject: [PATCH] oops. --- src/engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.c b/src/engine.c index d962105578..e285c74635 100644 --- a/src/engine.c +++ b/src/engine.c @@ -1644,14 +1644,14 @@ void engine_makeproxies(struct engine *e) { #ifdef WITH_MPI const int *cdim = e->s->cdim; const struct space *s = e->s; - const struct cell *cells = s->cells; + struct cell *cells = s->cells; struct proxy *proxies = e->proxies; /* Prepare the proxies and the proxy index. */ if (e->proxy_ind == NULL) if ((e->proxy_ind = (int *)malloc(sizeof(int) * e->nr_nodes)) == NULL) error("Failed to allocate proxy index."); - for (k = 0; k < e->nr_nodes; k++) e->proxy_ind[k] = -1; + for (int k = 0; k < e->nr_nodes; k++) e->proxy_ind[k] = -1; e->nr_proxies = 0; /* The following loop is super-clunky, but it's necessary -- GitLab