Changeset 2153


Ignore:
Timestamp:
Jun 18, 2007, 1:51:41 PM (15 years ago)
Author:
charles
Message:

(gtk) fix compile-time warnings on 32-bit machines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/makemeta-ui.c

    r2151 r2153  
    170170    char * filename;
    171171    char buf[512];
    172     size_t fileCount=0, totalSize=0;
    173     size_t pieceCount=0, pieceSize=0;
     172    uint64_t totalSize=0;
     173    int fileCount=0, pieceCount=0, pieceSize=0;
    174174
    175175    if( ui->builder ) {
     
    189189
    190190    pch = readablesize( totalSize );
    191     g_snprintf( buf, sizeof(buf), "<i>%s; %lu %s</i>",
     191    g_snprintf( buf, sizeof(buf), "<i>%s; %d %s</i>",
    192192                pch, fileCount,
    193193                ngettext("file", "files", fileCount) );
     
    196196
    197197    pch = readablesize( pieceSize );
    198     g_snprintf( buf, sizeof(buf), "<i>%lu %s @ %s</i>",
     198    g_snprintf( buf, sizeof(buf), "<i>%d %s @ %s</i>",
    199199                pieceCount,
    200200                ngettext("piece", "pieces", pieceCount),
Note: See TracChangeset for help on using the changeset viewer.