mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-28 10:02:31 -06:00
core/hw/rsa: Make operator bool explicit
Prevents error-prone implicit conversions to bool from occurring.
This commit is contained in:
parent
75bac1e514
commit
c55e81b946
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public:
|
||||||
: init(true), exponent(std::move(exponent)), modulus(std::move(modulus)) {}
|
: init(true), exponent(std::move(exponent)), modulus(std::move(modulus)) {}
|
||||||
std::vector<u8> GetSignature(const std::vector<u8>& message);
|
std::vector<u8> GetSignature(const std::vector<u8>& message);
|
||||||
|
|
||||||
operator bool() const {
|
explicit operator bool() const {
|
||||||
// TODO(B3N30): Maybe check if exponent and modulus are vailid
|
// TODO(B3N30): Maybe check if exponent and modulus are vailid
|
||||||
return init;
|
return init;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue