Commit 80157091 authored by Matthieu Schaller's avatar Matthieu Schaller

Use an explicit cast for the pointer difference.

parent 856d9ab2
......@@ -2317,7 +2317,7 @@ void space_first_init_parts_mapper(void *restrict map_data, int count,
const struct space *restrict s = (struct space *)extra_data;
const struct engine *e = s->e;
struct xpart *restrict xp = s->xparts + (p - s->parts);
struct xpart *restrict xp = s->xparts + (ptrdiff_t)(p - s->parts);
const struct cosmology *cosmo = s->e->cosmology;
const struct phys_const *phys_const = s->e->physical_constants;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment