1
0
Fork 0
mirror of https://github.com/PabloMK7/citra.git synced 2025-03-04 21:56:34 +00:00

core/hw/rsa: Make operator bool explicit

Prevents error-prone implicit conversions to bool from occurring.
This commit is contained in:
Lioncash 2020-05-01 10:14:48 -04:00
parent 75bac1e514
commit c55e81b946

View file

@ -16,7 +16,7 @@ public:
: init(true), exponent(std::move(exponent)), modulus(std::move(modulus)) {}
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
return init;
}