From e4bc193fd6232da46a3676f1e21e7a14bf5b1a6f Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 23 Dec 2009 01:09:09 +0000 Subject: Avoid MSVC warning 4800 about implicit conversion from T to bool. Mostly because it makes the code slightly more explicit. --- src/constructs/tss/tss.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/constructs/tss') diff --git a/src/constructs/tss/tss.h b/src/constructs/tss/tss.h index 45d64d9cb..c8b0242d8 100644 --- a/src/constructs/tss/tss.h +++ b/src/constructs/tss/tss.h @@ -45,7 +45,7 @@ class BOTAN_DLL RTSS_Share byte share_id() const; u32bit size() const { return contents.size(); } - bool initialized() const { return contents.size(); } + bool initialized() const { return (contents.size() > 0); } private: SecureVector contents; }; -- cgit v1.2.3