Skip to content

Commit

Permalink
Jn: first arg int (#1876)
Browse files Browse the repository at this point in the history
Cast the first argument of the call to `jn(f)` to `int` in the
parser.
  • Loading branch information
ax3l authored Apr 7, 2021
1 parent 8867092 commit f19bf18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Parser/wp_parser_y.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ wp_call_f2 (enum wp_f2_t type, T a, T b)
return 0.0;
#else
# if defined(AMREX_USE_FLOAT) && !defined(__APPLE__)
return jnf(a, b);
return jnf(int(a), b);
# else
return jn(a, b);
return jn(int(a), b);
# endif
#endif
case WP_MIN:
Expand Down

0 comments on commit f19bf18

Please sign in to comment.