From a7c3a92fab5cb333d565277e8fc575b7a1423a43 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Sat, 23 May 2020 18:58:26 +0200
Subject: [PATCH] Fix type mismatch in the debugging checks

---
 src/line_of_sight.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/line_of_sight.c b/src/line_of_sight.c
index 1c3122fb17..cbd5426fb0 100644
--- a/src/line_of_sight.c
+++ b/src/line_of_sight.c
@@ -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
 
-- 
GitLab