Skip to content
Snippets Groups Projects
Commit 22d98b76 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

dt of ticks might overflow int

parent 66aca9b4
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,13 @@ static void *recv_thread(void *arg) {
static int cmp_logs(const void *p1, const void *p2) {
struct mpiuse_log_entry *l1 = *(struct mpiuse_log_entry **)p1;
struct mpiuse_log_entry *l2 = *(struct mpiuse_log_entry **)p2;
return l1->tic - l2->tic;
/* Large unsigned values, so take care. */
if (l1->tic > l2->tic)
return 1;
if (l1->tic < l2->tic)
return -1;
return 0;
}
/* Pick out the relevant logging data for our rank, i.e. all activations of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment