From 80ead39c7731ab3f2410b1104c78f9a2c0c02416 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Tue, 25 Jun 2013 16:51:50 +0200 Subject: [PATCH 1/1] try again to be 32/64 bit agnostic --- teshsuite/smpi/shared.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/teshsuite/smpi/shared.c b/teshsuite/smpi/shared.c index 61d244d519..61ea3e49f6 100644 --- a/teshsuite/smpi/shared.c +++ b/teshsuite/smpi/shared.c @@ -9,8 +9,9 @@ #include #include #include +#include -unsigned long hash(char *str); +uint64_t hash(char *str); uint64_t hash(char *str) { @@ -38,7 +39,7 @@ int main(int argc, char *argv[]) MPI_Barrier(MPI_COMM_WORLD); //everyobne reads from it. - printf("[%d] The value in the shared buffer is: %zu\n", rank, *buf); + printf("[%d] The value in the shared buffer is: %llu\n", rank, (unsigned long long)*buf); MPI_Barrier(MPI_COMM_WORLD); -- 2.20.1