mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
(trunk libT) update one of the validity tests to understand the bool and double types
This commit is contained in:
parent
293524e9ca
commit
8f256a4648
1 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,10 @@ isContainer( const tr_benc * val )
|
||||||
static tr_bool
|
static tr_bool
|
||||||
isSomething( const tr_benc * val )
|
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
|
static void
|
||||||
|
|
Loading…
Reference in a new issue