Ignore:
Timestamp:
May 9, 2007, 7:00:08 AM (15 years ago)
Author:
joshe
Message:

Don't bencode signed integers as unsigned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r1751 r1857  
    188188    {
    189189        case TYPE_INT:
    190             fprintf( stderr, "int:  %"PRIu64"\n", val->val.i );
     190            fprintf( stderr, "int:  %"PRId64"\n", val->val.i );
    191191            break;
    192192
     
    432432    {
    433433        case TYPE_INT:
    434             if( tr_sprintf( buf, used, max, "i%"PRIu64"e", val->val.i ) )
     434            if( tr_sprintf( buf, used, max, "i%"PRId64"e", val->val.i ) )
    435435            {
    436436                return 1;
Note: See TracChangeset for help on using the changeset viewer.