Ticket #3656: bjam-gcc-printf-warning-cleanup.patch

File bjam-gcc-printf-warning-cleanup.patch, 1.0 KB (added by mloskot <mateusz@…>, 13 years ago)

Patch cleaning warnings reported in this ticket

  • tools/jam/src/hash.c

     
    448448        run = here;
    449449    }
    450450
    451     printf( "%s table: %d+%d+%d (%dK+%ldK) items+table+hash, %f density\n",
     451    printf( "%s table: %d+%d+%d (%dK+%luK) items+table+hash, %f density\n",
    452452        hp->name,
    453453        count,
    454454        hp->items.nel,
    455455        hp->tab.nel,
    456456        hp->items.nel * hp->items.size / 1024,
    457         hp->tab.nel * sizeof( ITEM ** ) / 1024,
     457        (long unsigned)hp->tab.nel * sizeof( ITEM ** ) / 1024,
    458458        (float)count / (float)sets );
    459459}
  • tools/jam/src/hcache.c

     
    166166{
    167167    if ( !s )
    168168        s = "";
    169     fprintf( f, "%lu\t%s\n", strlen( s ), s );
     169    fprintf( f, "%lu\t%s\n", (long unsigned)strlen( s ), s );
    170170}
    171171
    172172