From 8f256a46481cac19246a35a59708c05ccded7fda Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 5 Apr 2009 21:33:06 +0000 Subject: [PATCH] (trunk libT) update one of the validity tests to understand the bool and double types --- libtransmission/bencode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libtransmission/bencode.c b/libtransmission/bencode.c index 40d79f048..de820a1fb 100644 --- a/libtransmission/bencode.c +++ b/libtransmission/bencode.c @@ -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