From 74bca7ae46f91fd98159629d930d080f5bd6cc93 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Fri, 11 Mar 2016 17:29:41 +0000 Subject: [PATCH] Fixed arithmetic exception --- src/space.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/space.c b/src/space.c index b4b5a79404..fa2541c287 100644 --- a/src/space.c +++ b/src/space.c @@ -1153,7 +1153,7 @@ void space_do_split(struct space *s, struct cell *c) { } /* Set ownership according to the start of the parts array. */ - if (count > 0) + if (s->nr_parts > 0) c->owner = ((c->parts - s->parts) % s->nr_parts) * s->nr_queues / s->nr_parts; else -- GitLab