From 832ad94de321b583424a958b4659a7bbe7204676 Mon Sep 17 00:00:00 2001 From: "Victor A. Paludetto Magri" <50467563+victorapm@users.noreply.github.com> Date: Fri, 3 Feb 2023 17:01:02 -0500 Subject: [PATCH] Fix data conversion issues (#831) This PR fixes a few compilation issues introduced in the previous PR involving the --enable-single and --enable-mixedint builds --- src/utilities/device_utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utilities/device_utils.c b/src/utilities/device_utils.c index 97f7b74ed..4e325759f 100644 --- a/src/utilities/device_utils.c +++ b/src/utilities/device_utils.c @@ -1466,7 +1466,7 @@ hypreDevice_ComplexAxpyn( HYPRE_Complex *d_x, HYPRE_Complex *d_z, HYPRE_Complex a ) { - return hypreDevice_Axpyzn((HYPRE_Int) n, d_x, d_y, d_z, a, 1.0); + return hypreDevice_Axpyzn((HYPRE_Int) n, d_x, d_y, d_z, a, (HYPRE_Complex) 1.0); } /*-------------------------------------------------------------------- @@ -1480,7 +1480,7 @@ hypreDevice_IntAxpyn( HYPRE_Int *d_x, HYPRE_Int *d_z, HYPRE_Int a ) { - return hypreDevice_Axpyzn((HYPRE_Int) n, d_x, d_y, d_z, a, 1); + return hypreDevice_Axpyzn((HYPRE_Int) n, d_x, d_y, d_z, a, (HYPRE_Int) 1); } /*-------------------------------------------------------------------- @@ -1494,7 +1494,7 @@ hypreDevice_BigIntAxpyn( HYPRE_BigInt *d_x, HYPRE_BigInt *d_z, HYPRE_BigInt a ) { - return hypreDevice_Axpyzn((HYPRE_Int) n, d_x, d_y, d_z, a, 1); + return hypreDevice_Axpyzn((HYPRE_Int) n, d_x, d_y, d_z, a, (HYPRE_BigInt) 1); } /*--------------------------------------------------------------------