mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
general: fix compilation on GCC 12
This commit is contained in:
parent
6f59e2676b
commit
d11547024c
2 changed files with 2 additions and 2 deletions
|
@ -419,7 +419,7 @@ std::optional<Core::Crypto::Key128> NCA::GetKeyAreaKey(NCASectionCryptoType type
|
||||||
Core::Crypto::Mode::ECB);
|
Core::Crypto::Mode::ECB);
|
||||||
cipher.Transcode(key_area.data(), key_area.size(), key_area.data(), Core::Crypto::Op::Decrypt);
|
cipher.Transcode(key_area.data(), key_area.size(), key_area.data(), Core::Crypto::Op::Decrypt);
|
||||||
|
|
||||||
Core::Crypto::Key128 out;
|
Core::Crypto::Key128 out{};
|
||||||
if (type == NCASectionCryptoType::XTS) {
|
if (type == NCASectionCryptoType::XTS) {
|
||||||
std::copy(key_area.begin(), key_area.begin() + 0x10, out.begin());
|
std::copy(key_area.begin(), key_area.begin() + 0x10, out.begin());
|
||||||
} else if (type == NCASectionCryptoType::CTR || type == NCASectionCryptoType::BKTR) {
|
} else if (type == NCASectionCryptoType::CTR || type == NCASectionCryptoType::BKTR) {
|
||||||
|
|
|
@ -58,7 +58,7 @@ public:
|
||||||
[[nodiscard]] Stack Remove(Token token) const;
|
[[nodiscard]] Stack Remove(Token token) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::container::small_vector<StackEntry, 3> entries;
|
std::vector<StackEntry> entries;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct IndirectBranch {
|
struct IndirectBranch {
|
||||||
|
|
Loading…
Reference in a new issue