From: Augustin Degomme Date: Tue, 25 Jun 2013 14:51:50 +0000 (+0200) Subject: try again to be 32/64 bit agnostic X-Git-Tag: v3_9_90~224 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/80ead39c7731ab3f2410b1104c78f9a2c0c02416?hp=26a7a4aa12a348c085ec0d7e163692efc6efaeec;ds=sidebyside try again to be 32/64 bit agnostic --- 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);