Skip to content

Commit 1c84904

Browse files
authored
Change to ternary if operator in froll.c
1 parent 47e4131 commit 1c84904

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/froll.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ void frollfun(rollfun_t rfun, unsigned int algo, const double *x, uint64_t nx, a
112112
}
113113
}
114114
if (verbose) {
115-
if(algo == 0)
116-
snprintf(end(ans->message[0]), 500, _("%s: processing fun %s algo %s took %.3fs\n"), __func__, rfunStr, "fast", omp_get_wtime()-tic);
117-
else
118-
snprintf(end(ans->message[0]), 500, _("%s: processing fun %s algo %s took %.3fs\n"), __func__, rfunStr, "exact", omp_get_wtime()-tic);
115+
snprintf(end(ans->message[0]), 500, _("%s: processing fun %s algo %s took %.3fs\n"), __func__, rfunStr, (algo == 0) ? "fast" : "exact", omp_get_wtime()-tic);
119116
}
120117
}
121118

0 commit comments

Comments
 (0)