Commit a7c3a92f authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fix type mismatch in the debugging checks

parent 319025da
......@@ -755,8 +755,7 @@ void do_line_of_sight(struct engine *e) {
struct part *parts = s->parts;
const size_t nr_parts = s->nr_parts;
const size_t old_particles_in_los_local =
LOS_list[j].particles_in_los_local;
const int old_particles_in_los_local = LOS_list[j].particles_in_los_local;
LOS_list[j].particles_in_los_local = 0;
/* Count all parts that intersect with this line of sight. */
......@@ -766,7 +765,7 @@ void do_line_of_sight(struct engine *e) {
/* Make sure we get the same answer as above. */
if (old_particles_in_los_local != LOS_list[j].particles_in_los_local)
error("Space vs cells don't match s:%li != c:%li",
error("Space vs cells don't match s:%d != c:%d",
LOS_list[j].particles_in_los_local, old_particles_in_los_local);
#endif
......
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