aboutsummaryrefslogtreecommitdiffstats
path: root/src/constructs/tss/tss.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-23 01:09:09 +0000
committerlloyd <[email protected]>2009-12-23 01:09:09 +0000
commite4bc193fd6232da46a3676f1e21e7a14bf5b1a6f (patch)
treed4640ca3c55e092ff4e743bc51ff9fd7fccd83d6 /src/constructs/tss/tss.h
parentd7a893e9506e739d261a75d99743d0dc75803a79 (diff)
Avoid MSVC warning 4800 about implicit conversion from T to bool. Mostly
because it makes the code slightly more explicit.
Diffstat (limited to 'src/constructs/tss/tss.h')
-rw-r--r--src/constructs/tss/tss.h2
1 files changed, 1 insertions, 1 deletions
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<byte> contents;
};