From 32bb2ea77082095f2aa2b632ce1ed2693c684dc7 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Thu, 29 Nov 2012 00:33:33 +0000
Subject: [PATCH] Corrected (this time in the right way) the two printf
 messages that had the wrong formats depending on the architecture (64/32
 bits) of the machine.

Former-commit-id: a369bff9f6576c17c0ea0bbf6c441f7fb12d0712
---
 examples/test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/test.c b/examples/test.c
index 60a31722d9..eed35c8e39 100644
--- a/examples/test.c
+++ b/examples/test.c
@@ -854,7 +854,7 @@ int main ( int argc , char *argv[] ) {
     p = &s.parts[0];
     space_map_parts( &s , &map_wcount_min , &p );
     printf( "main: particle %i/%i at [ %e %e %e ] (h=%e) has minimum wcount %.3f (icount=%i).\n" ,
-        p->id , p - s.parts , p->x[0] , p->x[1] , p->x[2] , p->h , p->wcount + 32.0/3 , p->icount );
+	    p->id , (int)(p - s.parts) , p->x[0] , p->x[1] , p->x[2] , p->h , p->wcount + 32.0/3 , p->icount );
     
     /* Loop over all the tasks and dump the ones containing p. */
     /* for ( k = 0 ; k < s.nr_tasks ; k++ ) {
@@ -893,7 +893,7 @@ int main ( int argc , char *argv[] ) {
     p = &s.parts[0];
     space_map_parts( &s , &map_wcount_max , &p );
     printf( "main: particle %i/%i at [ %e %e %e ] (h=%e) has maximum wcount %.3f (icount=%i).\n" ,
-        p->id , p - s.parts , p->x[0] , p->x[1] , p->x[2] , p->h , p->wcount + 32.0/3 , p->icount );
+	    p->id , (int)(p - s.parts) , p->x[0] , p->x[1] , p->x[2] , p->h , p->wcount + 32.0/3 , p->icount );
     
     /* Get the average interactions per particle. */
     icount = 0;
-- 
GitLab