Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58011 - trunk/tools/jam/src
From: ghost_at_[hidden]
Date: 2009-11-28 12:46:47


Author: vladimir_prus
Date: 2009-11-28 12:46:46 EST (Sat, 28 Nov 2009)
New Revision: 58011
URL: http://svn.boost.org/trac/boost/changeset/58011

Log:
Fix warnings. Closes #3656.

Patch from Mateusz Loskot.

Text files modified:
   trunk/tools/jam/src/hash.c | 4 ++--
   trunk/tools/jam/src/hcache.c | 2 +-
   2 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/tools/jam/src/hash.c
==============================================================================
--- trunk/tools/jam/src/hash.c (original)
+++ trunk/tools/jam/src/hash.c 2009-11-28 12:46:46 EST (Sat, 28 Nov 2009)
@@ -448,12 +448,12 @@
         run = here;
     }
 
- printf( "%s table: %d+%d+%d (%dK+%ldK) items+table+hash, %f density\n",
+ printf( "%s table: %d+%d+%d (%dK+%luK) items+table+hash, %f density\n",
         hp->name,
         count,
         hp->items.nel,
         hp->tab.nel,
         hp->items.nel * hp->items.size / 1024,
- hp->tab.nel * sizeof( ITEM ** ) / 1024,
+ (long unsigned)hp->tab.nel * sizeof( ITEM ** ) / 1024,
         (float)count / (float)sets );
 }

Modified: trunk/tools/jam/src/hcache.c
==============================================================================
--- trunk/tools/jam/src/hcache.c (original)
+++ trunk/tools/jam/src/hcache.c 2009-11-28 12:46:46 EST (Sat, 28 Nov 2009)
@@ -166,7 +166,7 @@
 {
     if ( !s )
         s = "";
- fprintf( f, "%lu\t%s\n", strlen( s ), s );
+ fprintf( f, "%lu\t%s\n", (long unsigned)strlen( s ), s );
 }
 
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk