mirror of
https://github.com/ksherlock/mpw.git
synced 2024-12-10 11:49:25 +00:00
reserve the inverted error table.
This commit is contained in:
parent
22a8d6f588
commit
45269178b4
@ -1207,6 +1207,7 @@ void Shell()
|
||||
|
||||
|
||||
// load the error code to error mnemonic
|
||||
ErrorTableInvert.reserve(ErrorTable.size());
|
||||
for (const auto kv : ErrorTable) {
|
||||
ErrorTableInvert.emplace(std::make_pair(kv.second, kv.first));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user