Changeset 8160


Ignore:
Timestamp:
Apr 6, 2009, 1:32:55 AM (12 years ago)
Author:
charles
Message:

(trunk libT) silence a spurious warning in the new bencode code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r8159 r8160  
    459459        *setme = val->val.b;
    460460
    461     if( !success && tr_bencIsInt( val ) ) {
    462         if(( success = ( val->val.i==0 || val->val.i==1 ) )) {
    463             tr_benc_warning( "warning: reading bool as an int\n" );
     461    if( !success && tr_bencIsInt( val ) )
     462        if(( success = ( val->val.i==0 || val->val.i==1 ) ))
    464463            *setme = val->val.i!=0;
    465         }
    466     }
    467464
    468465    if( !success && tr_bencIsString( val ) )
Note: See TracChangeset for help on using the changeset viewer.