From 5bf1cecf0b393b827bd99e81876558bc4ffb69c1 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Tue, 5 Feb 2019 22:19:42 +0000
Subject: [PATCH] Type casting of the tic/toc before output to the task
 debugging files.

---
 src/task.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/task.c b/src/task.c
index d5e0a7d8dc..ab4184e002 100644
--- a/src/task.c
+++ b/src/task.c
@@ -794,7 +794,8 @@ void task_dump_all(struct engine *e, int step) {
   /* Add some information to help with the plots and conversion of ticks to
    * seconds. */
   fprintf(file_thread, " %d %d %d %d %lld %lld %lld %lld %lld %d %lld\n", -2,
-          -1, -1, 1, e->tic_step, e->toc_step, e->updates, e->g_updates,
+          -1, -1, 1, (unsigned long long)e->tic_step,
+          (unsigned long long)e->toc_step, e->updates, e->g_updates,
           e->s_updates, 0, cpufreq);
   for (int l = 0; l < e->sched.nr_tasks; l++) {
     if (!e->sched.tasks[l].implicit && e->sched.tasks[l].toc != 0) {
-- 
GitLab