1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2025-01-03 10:06:09 +01:00

Fix type error

This commit is contained in:
Anthony Scemama 2022-03-28 18:26:20 +02:00
parent bab87884cd
commit b9cd2ed1ab

View File

@ -425,7 +425,7 @@ qmckl_get_mo_basis_mo_vgl(qmckl_context context,
qmckl_context_struct* const ctx = (qmckl_context_struct* const) context;
assert (ctx != NULL);
size_t sze = ctx->point.num * 5 * ctx->mo_basis.mo_num;
const int64_t sze = ctx->point.num * 5 * ctx->mo_basis.mo_num;
if (size_max < sze) {
return qmckl_failwith( context,
QMCKL_INVALID_ARG_3,
@ -481,7 +481,7 @@ qmckl_get_mo_basis_mo_vgl_inplace (qmckl_context context,
qmckl_context_struct* const ctx = (qmckl_context_struct* const) context;
assert (ctx != NULL);
int64_t sze = ctx->mo_basis.mo_num * 5 * ctx->point.num;
const int64_t sze = ctx->mo_basis.mo_num * 5 * ctx->point.num;
if (size_max < sze) {
return qmckl_failwith( context,
QMCKL_INVALID_ARG_3,