diff options
author | lloyd <[email protected]> | 2009-12-23 01:09:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-12-23 01:09:09 +0000 |
commit | e4bc193fd6232da46a3676f1e21e7a14bf5b1a6f (patch) | |
tree | d4640ca3c55e092ff4e743bc51ff9fd7fccd83d6 /src/cert | |
parent | d7a893e9506e739d261a75d99743d0dc75803a79 (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/cert')
-rw-r--r-- | src/cert/x509/pkcs10.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cert/x509/pkcs10.cpp b/src/cert/x509/pkcs10.cpp index 5617cece4..81bb58555 100644 --- a/src/cert/x509/pkcs10.cpp +++ b/src/cert/x509/pkcs10.cpp @@ -186,7 +186,7 @@ std::vector<OID> PKCS10_Request::ex_constraints() const */ bool PKCS10_Request::is_CA() const { - return info.get1_u32bit("X509v3.BasicConstraints.is_ca"); + return (info.get1_u32bit("X509v3.BasicConstraints.is_ca") > 0); } /* |