Skip to content
Snippets Groups Projects
Commit 74bca7ae authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fixed arithmetic exception

parent edb566cf
No related branches found
No related tags found
2 merge requests!136Master,!116Basic implementation of gparts
...@@ -1153,7 +1153,7 @@ void space_do_split(struct space *s, struct cell *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. */ /* Set ownership according to the start of the parts array. */
if (count > 0) if (s->nr_parts > 0)
c->owner = c->owner =
((c->parts - s->parts) % s->nr_parts) * s->nr_queues / s->nr_parts; ((c->parts - s->parts) % s->nr_parts) * s->nr_queues / s->nr_parts;
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment