Commit 865284d3 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Correctly define 1 as an unsigned long long when bit shifting by 63.

parent c3480fcb
......@@ -1387,7 +1387,7 @@ static INLINE void runner_dopair_grav_mm_progenies(struct runner *r,
const int flag = i * 8 + j;
/* Did we agree to use an M-M interaction here at the last rebuild? */
if (flags & (1LL << flag)) runner_dopair_grav_mm(r, cpi, cpj);
if (flags & (1ULL << flag)) runner_dopair_grav_mm(r, cpi, cpj);
}
}
}
......
......@@ -1467,7 +1467,7 @@ static void scheduler_splittask_gravity(struct task *t, struct scheduler *s) {
* the information and operate according to the choices
* made here. */
const int flag = i * 8 + j;
t->flags |= (1LL << flag);
t->flags |= (1ULL << flag);
} else {
......
Supports Markdown
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