From f19bf1837e99f6d8365073f87b00297a1ace60e8 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 7 Apr 2021 08:56:48 -0700 Subject: [PATCH] Jn: first arg int (#1876) Cast the first argument of the call to `jn(f)` to `int` in the parser. --- Source/Parser/wp_parser_y.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Parser/wp_parser_y.h b/Source/Parser/wp_parser_y.h index 8a8aec89b08..63ec6c31677 100644 --- a/Source/Parser/wp_parser_y.h +++ b/Source/Parser/wp_parser_y.h @@ -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: