diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-08-11 10:31:57 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-08-11 10:31:57 -0700 |
commit | 0e9b21dcc80075537e8379a09bb21d9e8b6a31e6 (patch) | |
tree | 6021bb2bb41162fab8fd73eb1d9efe9ad25ed632 | |
parent | 99e48220f999ecd8f9535675c2d3432202abf57a (diff) | |
download | mu-0e9b21dcc80075537e8379a09bb21d9e8b6a31e6.tar.gz |
4502
-rw-r--r-- | subx/030---operands.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/030---operands.cc b/subx/030---operands.cc index 0ae76ad5..9326e9d8 100644 --- a/subx/030---operands.cc +++ b/subx/030---operands.cc @@ -386,7 +386,7 @@ bool has_metadata(const word& w, const string& m) { bool metadata_found = false; for (int i = 0; i < SIZE(w.metadata); ++i) { const string& curr = w.metadata.at(i); - if (!contains_key(Instruction_operands, curr)) continue; // ignore unrecognized metadata + if (Instruction_operands.find(curr) == Instruction_operands.end()) continue; // ignore unrecognized metadata if (metadata_found) { raise << "'" << w.original << "' has conflicting operand types; it should have only one\n" << end(); return false; |