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
This commit is contained in:
Victor A. Paludetto Magri 2023-02-03 17:01:02 -05:00 committed by GitHub
parent 53dfbe360f
commit 832ad94de3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
/*--------------------------------------------------------------------