diff options
author | git <[email protected]> | 2015-04-08 04:04:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-04-08 04:04:55 +0000 |
commit | 62947773cedb0c9534c5df91271db9a9414e6e2a (patch) | |
tree | b1a891aca42784136ed58e0d0b90c81159caf0f6 /src/lib/cert | |
parent | 4eccc8f01e9ce6ce72b90731dc72cb30d383f0aa (diff) |
Fix code that triggers a strange MSVC 'performance warning'
Github pull 74 from Chris Desjardins
Diffstat (limited to 'src/lib/cert')
-rw-r--r-- | src/lib/cert/x509/x509cert.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cert/x509/x509cert.cpp b/src/lib/cert/x509/x509cert.cpp index b04e7c462..195af7730 100644 --- a/src/lib/cert/x509/x509cert.cpp +++ b/src/lib/cert/x509/x509cert.cpp @@ -232,7 +232,7 @@ bool X509_Certificate::allowed_usage(Key_Constraints usage) const { if(constraints() == NO_CONSTRAINTS) return true; - return (constraints() & usage); + return ((constraints() & usage) != 0); } bool X509_Certificate::allowed_usage(const std::string& usage) const |