1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(trunk libT) update one of the validity tests to understand the bool and double types

This commit is contained in:
Charles Kerr 2009-04-05 21:33:06 +00:00
parent 293524e9ca
commit 8f256a4648

View file

@ -47,7 +47,10 @@ isContainer( const tr_benc * val )
static tr_bool
isSomething( const tr_benc * val )
{
return isContainer( val ) || tr_bencIsInt( val ) || tr_bencIsString( val );
return isContainer( val ) || tr_bencIsInt( val )
|| tr_bencIsString( val )
|| tr_bencIsReal( val )
|| tr_bencIsBool( val );
}
static void