Skip to content

Commit

Permalink
Allow rounding in the conversion to double and back
Browse files Browse the repository at this point in the history
Only an issue with GCC 14.1 so far
  • Loading branch information
pwdraper committed Aug 19, 2024
1 parent 2cd9f4b commit e625ac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testOutputList.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#define Ntest 3
#define tol 1e-12
#define itol 1000
#define filename "output_list_params.yml"

/* Expected values from file */
Expand Down Expand Up @@ -68,7 +69,7 @@ void test_no_cosmo(struct engine *e, const char *name, const int with_assert) {

/* Set current time */
e->ti_current = (output_time - e->time_begin) / e->time_base;
e->ti_current += 1;
e->ti_current += itol;

/* Read next value */
integertime_t ti_next = 0;
Expand Down

0 comments on commit e625ac9

Please sign in to comment.