From 0ddaf0cd292d862819b34e6d4d417be53b9c1958 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Tue, 26 Sep 2023 17:34:57 +0200 Subject: [PATCH] cast --- org/qmckl_examples.org | 4 ++-- org/qmckl_mo.org | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org/qmckl_examples.org b/org/qmckl_examples.org index 3fb3989..43e785d 100644 --- a/org/qmckl_examples.org +++ b/org/qmckl_examples.org @@ -460,8 +460,8 @@ int main(int argc, char** argv) gettimeofday(&timecheck, NULL); after = (long)timecheck.tv_sec * 1000 + (long)timecheck.tv_usec / 1000; - printf("Number of MOs: %ld\n", mo_num); - printf("Number of grid points: %ld\n", point_num); + printf("Number of MOs: %ld\n", (long) mo_num); + printf("Number of grid points: %ld\n", (long) point_num); printf("Execution time : %f seconds\n", (after - before)*1.e-3); #+end_src diff --git a/org/qmckl_mo.org b/org/qmckl_mo.org index 40b3190..d8240cd 100644 --- a/org/qmckl_mo.org +++ b/org/qmckl_mo.org @@ -3043,7 +3043,7 @@ printf("\n"); assert (rc == QMCKL_SUCCESS); rc = qmckl_get_mo_basis_mo_num(context, &mo_num); - printf(" mo_num: %ld\n", mo_num); + printf(" mo_num: %ld\n", (long) mo_num); assert(mo_num == 2); double mo_coefficient_new[mo_num][ao_num];